]> git.mjollnir.org Git - moodle.git/commit
ajaxlib/require_js: MDL-16693 $PAGE->requires->... deprecates require_js etc.
authortjhunt <tjhunt>
Fri, 12 Jun 2009 12:13:07 +0000 (12:13 +0000)
committertjhunt <tjhunt>
Fri, 12 Jun 2009 12:13:07 +0000 (12:13 +0000)
commitcf6155226cba2e4e62e9e1cb44dad88afacc39b4
tree14dd7b33de46d7ca78e7622e23066378e39c51a0
parent151165e3d16312d5a44acd14898251fc5614f891
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.)
36 files changed:
admin/report/capability/index.php
admin/report/spamcleaner/index.php
admin/roles/assign.php
admin/roles/lib.php
admin/xmldb/javascript.php
blocks/admin_tree/block_admin_tree.php
calendar/lib.php
course/completion.js
course/view.php
group/members.php
lib/ajax/ajaxlib.php
lib/ajax/simpletest/testajaxlib.php
lib/deprecatedlib.php
lib/filelib.php
lib/form/dateselector.php
lib/form/datetimeselector.php
lib/formslib.php
lib/moodlelib.php
lib/pagelib.php
lib/questionlib.php
lib/recaptchalib.php
lib/weblib.php
message/refresh.php
mod/chat/gui_ajax/index.php
mod/forum/lib.php
mod/quiz/accessrules.php
mod/quiz/attempt.php
mod/quiz/attemptlib.php
mod/quiz/edit.php
mod/quiz/quiz.js
mod/quiz/review.php
question/editlib.php
question/export.php
question/type/questiontype.php
repository/lib.php
user/selector/lib.php