51 Commits

Author SHA1 Message Date
Aparup Banerjee
0e638ff452 ajax MDL-23694 added missing page context which fixes groups ui ajax search 2010-09-24 03:57:13 +00:00
Sam Hemelryk
0b3f854736 groups MDL-24262 Tidied up inline script from group selector 2010-09-20 02:22:19 +00:00
Petr Skoda
ca3b1fd973 fixed unterminated JS statements 2010-09-17 19:59:16 +00:00
Petr Skoda
eab8ed9fb7 fixed a few spelling errors in /admin/ 2010-09-17 10:27:26 +00:00
Petr Skoda
f63ac65ac5 MDL-24079 converted sql_ilike() to new sql_like in user selectors 2010-09-04 11:46:00 +00:00
Petr Skoda
04aec3dacf MDL-23927 do not use = 'guest' because we have CFG->siteguest AND it matches any other username with accents and different case in MySQL 2010-08-25 08:32:59 +00:00
jerome mouneyrac
206dd86100 webservice MDL-23471 fix XHTML strict issues + two XHTML strict issues related to the user selector form element and the admin_settings_heading class 2010-07-30 07:43:14 +00:00
Sam Hemelryk
f19497f22e group-javascript MDL-22935 Fixed problematic conversion to Moodle 2 JS methods, Thanks Paul for the patch 2010-07-23 04:19:42 +00:00
Petr Skoda
df997f841f MDL-21782 reworked enrolment framework, the core infrastructure is in place, the basic plugins are all implemented; see the tracker issue for list of unfinished bits, expect more changes and improvements during the next week
AMOS START
    MOV [sendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage,enrol_self]
    MOV [configsendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage_desc,enrol_self]
    MOV [enrolstartdate,core],[enrolstartdate,enrol_self]
    MOV [enrolenddate,core],[enrolenddate,enrol_self]
    CPY [welcometocourse,core],[welcometocourse,enrol_self]
    CPY [welcometocoursetext,core],[welcometocoursetext,enrol_self]
    MOV [notenrollable,core],[notenrollable,core_enrol]
    MOV [enrolenddaterror,core],[enrolenddaterror,enrol_self]
    MOV [enrolmentkeyhint,core],[passwordinvalidhint,enrol_self]
    MOV [coursemanager,core_admin],[coursecontact,core_admin]
    MOV [configcoursemanager,core_admin],[coursecontact_desc,core_admin]
    MOV [enrolledincourserole,core],[enrolledincourserole,enrol_manual]
    MOV [enrolme,core],[enrolme,core_enrol]
    MOV [unenrol,core],[unenrol,core_enrol]
    MOV [unenrolme,core],[unenrolme,core_enrol]
    MOV [enrolmentnew,core],[enrolmentnew,core_enrol]
    MOV [enrolmentnewuser,core],[enrolmentnewuser,core_enrol]
    MOV [enrolments,core],[enrolments,core_enrol]
    MOV [enrolperiod,core],[enrolperiod,core_enrol]
    MOV [unenrolroleusers,core],[unenrolroleusers,core_enrol]
AMOS END
2010-06-21 15:30:49 +00:00
Petr Skoda
4f0c2d0009 MDL-21655 big scary enrolment and roles improvements - see tacker for list of changes, includes other minor fixes too 2010-03-31 07:41:31 +00:00
Sam Hemelryk
456e4852c6 user-selector MDL-21537 Refactored JS to make use of YUI3
*  YUI3 used instead of YUI2, converted all YUI2 components to YUI3 equivalents.
 * Renamed user/selector/script.js to module.js
 * Converted uses of the the user selector to YUI3 + the new events
2010-03-23 07:38:32 +00:00
Petr Skoda
41912a261f MDL-21400 converting JS set_user_preference to M namespace and YUI3 2010-02-06 15:20:24 +00:00
Petr Skoda
9598d578bb MDL-21420 modole_cfg converted to M.cfg 2010-01-21 22:19:46 +00:00
Petr Skoda
9dec75dbcc MDL-21240 shortened urls now start with / everywhere 2010-01-18 20:57:32 +00:00
Petr Skoda
a685593466 MDL-21233 moodle_url improvemewnts, code simplification, more diagnostics; fixed several regressions 2010-01-16 15:39:56 +00:00
Andrew Davis
bf1ac6d9ae group MDL-20005 added display of other groups users are in 2009-12-21 08:13:50 +00:00
Petr Skoda
2f67a9b3a5 MDL-20700 whitespace terror returns yet again 2009-12-16 22:22:37 +00:00
Petr Skoda
b5d0cafc6f MDL-20787 final switch to new $OUTPUT->pix_url() - yay! 2009-12-16 21:50:45 +00:00
Petr Skoda
f44b10ed93 MDL-21139 replace all yui functions/methods with yui2 to make room for yui3 2009-12-16 20:25:14 +00:00
Sam Hemelryk
c23c90093e mod-forum MDL-17550 Converted subscribers.php to use the new user_selector control
At the same time I also converted weblib.php::check_theme_arrows to use UTF8 arrows rather than entities.
2009-12-10 02:11:28 +00:00
Petr Skoda
aa6c1ced0a MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-04 08:11:02 +00:00
jerome
234c18e44d user selector MDL-16992 just add a comment to the function phpdoc get_option() that must be implemented to use the base search ajax field 2009-10-14 07:25:59 +00:00
samhemelryk
ce221eb52d user MDL-19825 Added set_url calls, replaced deprecated functions, and boilderplate 2009-09-25 04:02:46 +00:00
tjhunt
ddedf979b4 MDL-19690 - more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-03 06:19:25 +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
8d89b40183 Preserve multiselect option through ajax calls. 2009-01-06 06:14:37 +00:00
tjhunt
1e8e46879c roles interface: Code reorganisation and adding boilerplate comments.
I have collected code that used to be in lib/adminlib.php, lib/accesslib.php and user/selector/lib.php into a new admin/roles/lib.php file.

And I added standard GPL and Moodle comments to all the files in admin/roles.
2008-11-13 04:07:01 +00:00
tjhunt
6a2e5bf3a3 Kill test file that is no longer needed. 2008-11-13 03:46:04 +00:00
tjhunt
40ab508a7e Fix variable name typo. 2008-11-13 03:06:20 +00:00
tjhunt
a6e7237adc roles explanation: MDL-13538 Make a table showing the result of has_capability for every capabiltiy in a context.
This implements the page showing the table. It is not yet integrated into the tab bar. To try this, go to an Assign roles page (one with URL .../admin/roles/assign.php?contextid=...) and change the 'assign' to 'explain'.
2008-11-12 07:55:09 +00:00
tjhunt
deb39f4382 user selector: MDL-16966 Nicer messages when there are too many users to show.
Also, improved the comment that explains to subclassers what they have to do, and fixed get_selected_users, so if the number of selected users is greater than the max number of users to show, it still works.
2008-11-11 02:26:03 +00:00
tjhunt
9d07ec29dc user selector: MDL-16966 Nicer handling of the situation where there are no users at all.
A slight improvement of a patch by Dan Poltawski.
2008-11-06 06:09:14 +00:00
tjhunt
1acd8f50f7 user selector: MDL-16966 Work round IE bug. Also, deal with reload case.
Listen you morons in Redmond: getElementById does not mean getElementByIdOrNameOrAnythingElseRandomWeFeelLike. Oh well. I have done a work-around.
2008-11-05 02:16:07 +00:00
tjhunt
2bea836d9b user selector: MDL-16966 Minor code cleanup. 2008-11-04 10:08:37 +00:00
tjhunt
1ae7210784 user selector: MDL-16966 use a JavaScrip event name that works cross-browser for watching the check-boxes. 2008-11-04 09:13:41 +00:00
tjhunt
4099f71f12 user selection: MDL-17073 add options to control the search in a collapsible region - Fix JavaScript error. 2008-11-04 07:51:49 +00:00
tjhunt
cf0a341faf Slight tidy up for how the JS is included and initialised. 2008-11-04 07:25:43 +00:00
tjhunt
cca4c120dd user selection: MDL-17073 add options to control the search in a collapsible region - fix the preserve-selected option. 2008-11-04 07:24:07 +00:00
tjhunt
904998d8f9 user selection: MDL-17073 add options to control the search in a collapsible region. 2008-11-04 05:12:12 +00:00
tjhunt
c9e4326c39 user selection: MDL-17073 Clear button next to the search box 2008-11-03 06:42:41 +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
71ef682259 user selector: MDL-16996- followup - change optgroup label escaping funciton to keep Nicolas Martignoni happy. I can's say I full understand this issue. 2008-11-03 05:03:00 +00:00
tjhunt
6cab02ac52 user selection: MDL-16993 Convert the assign roles page to use the new components.
At the same time, I took the opportunity to try to work on some of the usability issues on this page. Note that I have not quite finished! So don't comment until tomorrow.

In the course of doing this, I also did: half of

MDL-11529 Show the number of assignees of each role in the change role dropdown on this page.
MDL-17067 Make it clear in the UI that admins are not allowed to unassign themselves.
2008-10-30 10:49:15 +00:00
tjhunt
73064df8f7 user selection: Make inserting the search term into lang strings in JavaScript more robust. 2008-10-30 03:56:48 +00:00
tjhunt
aa9671c990 user selection: MDL-16966 Improve some of the wording. 2008-10-29 09:10:41 +00:00
tjhunt
9787301687 user selection: MDL-16994 Improve the user selector used on the assign roles and group memebers pages - Convert the group memebership page. 2008-10-29 08:18:24 +00:00
tjhunt
f771be2787 user selection: MDL-17053 Improve the user selector used on the assign roles and group memebers pages - Make single user select mode work properly. 2008-10-29 05:09:18 +00:00
tjhunt
26b773ec53 user selection: MDL-17054 Improve the user selector used on the assign roles and group memebers pages - fire an event when the selection becomes empty/not-empty. 2008-10-29 04:40:34 +00:00
tjhunt
d56f9e659d user selection: MDL-16996 Improve the user selector used on the assign roles and group memebers pages - Write the JavaScript to do the Ajax requests and update the list of users. 2008-10-28 06:51:36 +00:00
tjhunt
f05c20fb44 user selection: MDL-16995 Improve the user selector used on the assign roles and group memebers pages - Implement search.php which does the work for ajax requests. 2008-10-27 08:37:50 +00:00