tjhunt
9ca1395054
Try to improve formatting of PHPdoc.
2009-06-15 02:48:40 +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
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
fbaa7b88db
MDL-19162 updated links for elements no longer beta and experiment
2009-05-14 09:18:11 +00:00
nicolasconnault
9810d8a08c
MDL-14909 Preventing the border from being assigned to label list elements. Merged from MOODLE_19_STABLE
2009-04-29 09:31:24 +00:00
nicolasconnault
472a4b92c8
MDL-9306 Converting tabs to spaces. Merged from MOODLE_19_STABLE
2009-04-23 07:22:27 +00:00
tjhunt
3744f3770c
ajaxlib: fix unit tests.
2009-03-10 07:48:29 +00:00
skodak
cc4245a3cd
MDL-16483 - stopped using MoodleUnitTestCase in tests where $DB not needed
2009-01-10 13:23:37 +00:00
skodak
d4a1fcaf11
MDL-16613 sesskey cleanup
2009-01-02 10:36:25 +00:00
tjhunt
f2eb500238
weblib: MDL-17085 a function to print a collapsible region of the UI, with the collapsed state stored in a user_perference.
2008-11-03 05:04:23 +00:00
tjhunt
bd1884fe6b
ajax: MDL-17084 provide a way for JavaScript to update user preferences.
2008-10-31 08:25:19 +00:00
nicolasconnault
ca255392e2
MDL-12198 Fixed ordering of sections, Merging from MOODLE_19_STABLE
2008-10-08 12:22:04 +00:00
nicolasconnault
fcc286a4e9
MDL-10201 Merged from MOODLE_19_STABLE
2008-10-08 09:10:05 +00:00
nicolasconnault
25e3d9f289
MDL-16784 Updating ajaxlib.php Merging from 1.9 stable
2008-10-08 08:21:46 +00:00
skodak
1f3ffe3308
MDL-16819 fixed regression in last commit, sorry
2008-10-07 23:05:09 +00:00
skodak
b7658fa0de
MDL-15800 merged changes from MOODLE_19_STABLE
2008-10-07 22:09:33 +00:00
tjhunt
e874af28ce
MDL-16583 Make require_js accept library names like lib/javascript-static.js without the caller having to fiddle around with $CFG->wwwroot themselves.
2008-09-25 06:29:28 +00:00
nicolasconnault
3440ec1234
MDL-12198
2008-08-08 05:25:54 +00:00
nicolasconnault
b958e94122
MDL-14731 Improved Bryce's patch and applied. YUI version number is kept in a simple version.php file, to be updated manually when updating the YUI libraries.
2008-07-24 13:37:05 +00:00
nicolasconnault
483f306734
Updating the translate_list for YUI components.
2008-05-13 07:24:43 +00:00
nicolasconnault
b244b9b776
MDL-14163 YUI implementation complete, new grader_report preference and admin setting for enabling ajax.
2008-04-18 19:30:28 +00:00
moodler
9aa82ed6d4
MDL-14399 Merged RTL fixes from 1.9
2008-04-17 08:50:56 +00:00
dongsheng
5a2a53316f
MDL-14129, remove all the other error() call
2008-04-04 02:54:20 +00:00
sam_marshall
ca70075a39
MDL-12284 Moved require_js to weblib and improved it so that it works if called during header (also tidied up code)
2007-11-20 18:04:03 +00:00
nfreear
5cfea9fbae
Follow up for MDL-12256, "Course AJAX has very poor accessibility - ALT text" - IE tooltip/ title hack.
2007-11-20 14:37:58 +00:00
nfreear
f8eaeffa21
Fixes for bug MDL-12256, "Course AJAX has very poor accessibility - ALT text" (includes white-space cleanup).
2007-11-19 17:22:04 +00:00
nfreear
11599e476d
Initial fix for MDL-12256, "Course AJAX has very poor accessibility - ALT text" - test, imgAttributes.length NOT attributes.length.
2007-11-19 15:25:16 +00:00
nicolasconnault
1ce18c08d3
MDL-9306 Applied Ann's patches: seems to work very well, the output is entirely XHTML compliant, and displays really nicely.
2007-11-06 14:01:13 +00:00
nicolasconnault
9837bd1d2c
MDL-7574 Applying Matthew Davidson's patch.
2007-08-27 16:59:04 +00:00
poltawski
72d2845296
MDL-9742 Converting tabs to spaces
2007-05-09 01:11:45 +00:00
nicolasconnault
cddbd5d5fe
MDL-8807: The icon's title attribute wasn't being updated along with its img.src
...
MDL-8997: A couple of typos: groupseparate instead of groupsseparate etc...
2007-03-22 07:16:57 +00:00
sam_marshall
0e9d0c0b85
Made it so you can call require_js after header printed (bug 8823)
2007-03-09 12:52:35 +00:00
nicolasconnault
c2a9fc9166
Issue 8417:
...
Added support for array of tested browsers to be passed to ajaxenabled()
Merged in from MOODLE_18_STABLE
2007-03-01 02:08:06 +00:00
nicolasconnault
d499142e5a
Safari 2.0 and Opera 9.0 are now detected and supported for YUI. However, preliminary tests show that drag&drop behaviour is very slow on Opera and user-unfriendly on both browsers. A YUI debug window also pops up on Safari.
...
I added a unit test for ajaxlib.php
Issue MDL-8417
Merged from MOODLE_18_STABLE
2007-03-01 01:31:37 +00:00
vyshane
604c634179
Reverted require_js() in lib/ajax/ajaxlib.php. Last changes broke backwards compatibility with the way the function worked in Moodle 1.7.
...
Small change in lib/weblib.php to allow require_js() to be used from themes. To use it, just call the function from themedir/meta.php.
2007-02-12 06:01:49 +00:00
urs_hunkler
c630701958
'add a second parameter to enable YUI loading from header.html in the themes - MDL-8374'
2007-02-09 13:25:48 +00:00
vyshane
74a344bf3b
Merged from 1.7.
2007-02-09 05:16:43 +00:00
vyshane
24af22cc20
Removed comment that no longer applies
2007-02-08 07:58:35 +00:00
vyshane
f72f94a257
Reworked require_js() so that it will not load libraries more than once.
...
Related to MDL-7682 and MDL-8374.
2007-02-02 06:35:25 +00:00
vyshane
446d6e7dd0
*** empty log message ***
2007-01-30 04:55:59 +00:00
vyshane
15c331b2e8
Merged from 1.7.
2007-01-29 07:58:47 +00:00
vyshane
c4ca9cb3b2
Merged from 1.7.
2007-01-29 02:22:18 +00:00
vyshane
e50b0ad904
Merged from 1.7.
2007-01-25 04:37:39 +00:00
vyshane
4c72307e24
Merged from 1.7
2007-01-24 05:58:59 +00:00
skodak
32f0b38a4a
MDL-8049 Remove all language=Javascript from javascript includes
2007-01-03 19:33:44 +00:00
vyshane
9f4dff704b
Merged from 1.7.
2006-12-18 06:26:23 +00:00
vyshane
67c0e16eed
Merged from 1.7.
2006-12-14 08:10:41 +00:00
vyshane
53a4443bae
Merged from 1.7.
2006-12-14 07:48:40 +00:00
vyshane
e9880ed208
Merged from 1.7.
2006-12-14 04:47:29 +00:00
vyshane
4a5548f928
Merged from 1.7.
2006-12-01 03:46:55 +00:00