Commit graph

9205 commits

Author SHA1 Message Date
tjhunt
c28bf5c9f8 javascript: MDL-19475 replace require_js calls with $PAGE->requires->js.
Also, some related JavaScript cleanup.

More to follow.
2009-06-15 05:37:57 +00:00
dongsheng
424362f3b5 "MDL-16695, fixed yui js files path" 2009-06-15 05:06:34 +00:00
tjhunt
5c5418fe9d Further fixes to PHPdoc comments. 2009-06-15 04:03:59 +00:00
tjhunt
2c144fc308 Further fixes to PHPdoc comments. 2009-06-15 03:54:00 +00:00
tjhunt
9ca1395054 Try to improve formatting of PHPdoc. 2009-06-15 02:48:40 +00:00
skodak
13a220cfb8 MDL-19500 improved editor embedding 2009-06-14 21:35:07 +00:00
skodak
fe54764e04 MDL-19498 importing tinymce 3.2.4.1 2009-06-14 16:19:28 +00:00
skodak
95fa2e7e4b MDL-19498 testing keyword expansion changes in exported libs 2009-06-14 16:14:45 +00:00
skodak
fc29e51b2d MDL-18293 removed obsoleted checking of return values from insert and update_record + unused strings cleanup 2009-06-13 18:34:43 +00:00
skodak
a8f3a651c0 MDL-18293 removed obsoleted checking of return values from insert and update_record + unused strings cleanup 2009-06-13 18:16:08 +00:00
skodak
bb4b6010f3 MDL-18293 removed obsoleted checking of return values from insert and update_record + unused strings cleanup 2009-06-13 17:17:10 +00:00
skodak
b8ac7ecec8 MDL-18293 removed obsoleted checking of return values from insert and update_record 2009-06-13 16:47:05 +00:00
skodak
44f27e4123 MDL-14990 pritning of backtrace does not rely on $CFG any more and can be used from destructors 2009-06-13 16:07:14 +00:00
skodak
b4154c2d64 MDL-14990 implemented query loggin in new native DML drivers 2009-06-13 15:59:55 +00:00
skodak
54d51f604e MDL-19470, MDL-14990 fixed db transactio nregression + towards query logging support 2009-06-13 10:16:29 +00:00
skodak
7900a54c30 MDL-14679 fixing old TODOs and adding more CLI support 2009-06-13 09:16:30 +00:00
skodak
eda26314d6 MDL-19474 adding TODO for removing of obsoleted adodb drivers before branching 2009-06-13 09:11:54 +00:00
skodak
bba506164d MDL-14679 fixing old TODOs 2009-06-13 09:09:30 +00:00
tjhunt
cf6155226c ajaxlib/require_js: MDL-16693 $PAGE->requires->... deprecates require_js etc.
There is a new implementation of require_js in lib/deprecatedlib.php,
based on $PAGE->requires.

There were a few other recently introduced functions in lib/weblib.php,
namely print_js_call, print_delayed_js_call, print_js_config and
standard_js_config. These have been removed, since they were never in
a stable branch, and all the places that used them have been changed
to use the newer $PAGE->requires->... methods.

get_require_js_code is also gone, and the evil places that were calling
it, even though it is an internal function, have been fixed.

Also, I made some minor improvements to the code I committed yesterday
for MDL-16695.

All that remains is to update all the places in core code that are
still using require_js.

(This commit also fixes the problem where the admin tree would not
start with the right categories expanded.)
2009-06-12 12:13:07 +00:00
tjhunt
45caa363f0 Fix whitespace, and a minor problem, in javascript-static.
Also, new, more efficient, variant of the select all checkboxes function,
for when they are all in a container with an id.
2009-06-12 12:01:16 +00:00
tjhunt
c679c3582a Fix some fallout from the pagelib changes. 2009-06-12 11:56:30 +00:00
skodak
1fbdf76ddb MDL-19470 detection of unfinished transactions and transactions interrupted by exceptions 2009-06-12 10:59:28 +00:00
tjhunt
a836d6d375 Fix whitespace. 2009-06-12 09:09:28 +00:00
skodak
8cc35d2055 MDL-14679 license header fixes 2009-06-12 08:50:50 +00:00
skodak
94b6329544 MDL-14679 license header fixes 2009-06-12 08:44:49 +00:00
skodak
5da75074c4 MDL-19470 adding missing inline docs 2009-06-12 08:27:19 +00:00
skodak
4bddb84049 MDL-19470 adding missing inline docs 2009-06-12 08:15:53 +00:00
skodak
4992614541 MDL-19470 fixing DML license headers 2009-06-12 08:14:29 +00:00
skodak
a1dda107bd MDL-19470 detection of nested transactions, only one level allowed 2009-06-12 07:55:44 +00:00
dongsheng
1b4a39e64b "MDL-16596, remove inline css from filemanager" 2009-06-12 05:59:43 +00:00
dongsheng
6b0fae574d "MDL-19002, implement attachment files limit in file picker" 2009-06-12 05:57:25 +00:00
tjhunt
b2330db606 ajaxlib: MDL-16695 New page_requirements_manager class. Soon to replace require_js.
This new class does the work that require_js used to do, and more.
It can track a number of different things that may be required to
be output somewhere on the page, including:

    * Links to JS files
    * Links to CSS files
    * Links to YUI libraries (this class knows about the dependancies between the different libs).
    * Skip links that go from the top of <body> to various places in the content.
    * Calls to JavaScript functions (for example to initialise things)
    * Bits of data from PHP that need to be available to JavaScript
    * As a special case of that, an easy way to pass language strings to JS.

The new API looks like

$PAGE->requires->css('mod/mymod/styles.css');
$PAGE->requires->js('mod/mymod/script.js');
$PAGE->requires->js('mod/mymod/small_but_urgent.js')->in_head();
$PAGE->requires->js_function_call('init_mymod', array($data))->on_dom_ready();

$PAGE->requires is the canonical instances of this new class.

The commit also includes unit tests, and hopefully the PHP doc comments are
clear enough that it is easy to understand.
2009-06-12 03:13:29 +00:00
skodak
80cfaf2bfe MDL-19471 fixed PHP 5.3 compatibility 2009-06-11 19:20:03 +00:00
dongsheng
b6fd5aee62 "MDL-17316, improve non-js file manager interface" 2009-06-11 08:08:33 +00:00
jerome
2b06294b9a authentication MDL-19182 split auth.php lang file into multiple files separate for each plugin 2009-06-11 03:34:46 +00:00
dongsheng
a0c4bc65fc "MDL-17316, improve interface in non-js browser" 2009-06-11 02:43:06 +00:00
mjollnir_
bcb39ec9e9 portfolio: removing suplerfluous error_log i forgot to remove earlier. 2009-06-09 19:54:22 +00:00
dongsheng
14f3c8827a "MDL-17316, display attached files in non-js file manager" 2009-06-09 06:43:38 +00:00
samhemelryk
9985cbc4fe breadcrumb MDL-14133 One function missed during fix, got it this time 2009-06-09 06:31:20 +00:00
sam_marshall
a4bfd8e1de MDL-19428: mform - Fixed the 'includenograde' option in modgrade type 2009-06-08 12:42:24 +00:00
dongsheng
761265adab "MDL-17316, non-js file picker added" 2009-06-08 06:25:53 +00:00
skodak
3e8b394e08 MDL-19416 fixed PHP 5.3 compatiblity issue - fixes weird use of constructors in quickforms 2009-06-07 09:43:27 +00:00
skodak
c3d0e1492e MDL-17458 fixing installation regressions - no output and timeout 2009-06-07 08:46:13 +00:00
mjollnir_
cfb3825e0d MDL-19355 - portfolio - fix the formatting in the portfolio manage admin page 2009-06-05 14:20:56 +00:00
dongsheng
f2e99b4d69 "MDL-16597, fixed delete existing draft files button" 2009-06-05 07:18:42 +00:00
dongsheng
fb8103e6a0 "MDL-16384, upgrade alfresco php library, fixed bugs in offical php sdk" 2009-06-05 06:55:07 +00:00
skodak
f9f8baa89e MDL-17491 ora 10 min required, no need for legacy hacks anymore 2009-06-03 20:55:00 +00:00
skodak
4b5732f987 MDL-17020 pg 8.3 required, no need for legacy hacks anymore :-D 2009-06-03 20:53:19 +00:00
skodak
2a7eff41ad MDL-18293 $DB->something is using exceptions, no need for ifs there, removing useless strings 2009-06-03 20:37:28 +00:00
skodak
a8d6ef8c6c MDL-18293 $DB->somethiong is using exceptions, no need for ifs there, removing useless strings 2009-06-03 20:16:20 +00:00