Commit graph

28594 commits

Author SHA1 Message Date
skodak
89489cfe94 MDL-11460 2007-09-26 19:25:50 +00:00
tjhunt
fba3ea31bc MDL-8682: Pressing enter when answering a short answer question can submit the wrong one. To fix this, I have disabled the enter key unless the keyboard focus is on a submit button (or inside a text box or HTML editor).
MDL-9451: Quiz answers can be lost if user navigates before page reloads. I am not totally sure I have fixed this, but I hope so. I moved the printing of the hidden form field with the list of questions on the page to the end of the form, so no answers will be processed unless the whole form loaded. Note that you could still lose data, but only if the page takes a really long time to load and you answer the first question and click submit before the whole quiz is loaded.

MDL-11463: The quiz uses two different timers, which is silly. I have removed the javascript that was ocasionally used to put a timer in the browser's title bar. Now we only use the one in the page for all cases.

Because MDL-8682 also needed javascript, I renamed timer.js to quiz.js so it could be a library of all the quiz's JavaScript, and started including it properly with require_js.
2007-09-26 18:15:31 +00:00
skodak
1843999a77 MDL-10985 merged the xml and xmlurl grade import plug-in 2007-09-26 18:11:48 +00:00
tjhunt
c6f9234ce3 Comment out an if (ajaxenabled()) check that was stopping any javascript included with require_js before print_header from being included, (but not js included afterwareds). See
http://moodle.org/mod/forum/discuss.php?d=81050 for discussion.
2007-09-26 17:48:27 +00:00
skodak
8925adab08 fix of disabledIf fix :-( 2007-09-26 17:30:24 +00:00
skodak
b6b1d1cac1 MDL-11460 new function moodleform->get_file_content($elname) in case we need to get content of uploaded files 2007-09-26 16:53:26 +00:00
skodak
4b282c641f fixed disabledif conditions 2007-09-26 16:49:37 +00:00
tjhunt
f59dba8497 MDL-11398 - Random questions sometimes ended up with names different from the cateogry they were actually picking from. Also, the same random questoin could be used in more than one quiz, in which case editing that question would change two quizzes unexpectedly. The fix is:
* Don't let the user set the name for random questions.
* Instead force the name to be "Random (catname)" (localised) whever the question is created or saved.
* When a category is renamed, rename all the random questions in it.
* Remove the restriction that Jamie seems to have added in 1.9 that was preventing the category of random questions from being edited.
2007-09-26 16:10:38 +00:00
nfreear
d2bd42498c Follow-up for MDL-1149 Accessibility: Current week/topic is NOT indicated non-visually. Reorder. 2007-09-26 12:53:04 +00:00
nfreear
b741d2ef95 Fixes "Notice: Undefined property: stdClass::$hideactivitytypenavlink..." 2007-09-26 12:44:35 +00:00
nicolasconnault
206f995349 Fixing OU report issues 2007-09-26 12:25:16 +00:00
moodler
ee8652f3de Not a pretty fix but it gets the preferences out of the way where users won't keep hitting the wrong submit 2007-09-26 11:42:36 +00:00
moodler
2f99f1da14 Fixed the HTML editor being too wide for the messaging window MDL-11242 2007-09-26 11:21:54 +00:00
sam_marshall
cdaa941032 MDL-11455 renamed function I just added, to make it more consistent (sorry) 2007-09-26 11:19:41 +00:00
sam_marshall
18d43e964b MDL-11455 Added function and option to grouplib (also corrected another comment) 2007-09-26 11:13:09 +00:00
skodak
c22e335d80 MDL-9636 fixed many sql injections in grade import code 2007-09-26 11:02:36 +00:00
nfreear
07916f13cc Follow-up for MDL-1149 Accessibility: Current week/topic is NOT indicated non-visually, only in styling. Prefer "This week" to "Current week" 2007-09-26 10:57:46 +00:00
skodak
235b07fb64 MDL-9636 grade_items are now limited to current course only - can not import into other courses anymore 2007-09-26 10:54:09 +00:00
sam_marshall
d15da061a1 Corrected inaccurate comment (said 'group IDs' when it actually returns group objects) 2007-09-26 10:16:25 +00:00
tjhunt
44888f691a Add $Id$ tags. 2007-09-26 10:13:23 +00:00
tjhunt
8d503f7557 Get rid of duplicate $Id$ tags. 2007-09-26 10:11:13 +00:00
tjhunt
7e7b6825ef MDL-11446 - when a set of radio buttons is a required field, don't colour the lables of all the individual radio buttons red. 2007-09-26 10:02:00 +00:00
skodak
e9dea7af66 MDL-9636 corrected the creation of new manual grade items, added source parameter 2007-09-26 10:00:51 +00:00
skodak
a700b5deee MDL-10985 import from remote xml file with key login option 2007-09-26 09:42:28 +00:00
tjhunt
4827029b92 MDL-11454 - hard-coded mdl_ prefix. Also, wrong logic in is_siteadmin in accesslib.php. 2007-09-26 09:40:28 +00:00
gbateson
88fe6acf9e change CONTEXT_MODULE to CONTEXT_COURSE in order to fix "Invalid context creation for level 50 instance" error on "mod/hotpot/index.php" caused by get_context_instance(CONTEXT_MODULE, $course->id) in "mod/hotpot/lib.php" 2007-09-26 07:22:06 +00:00
toyomoyo
a6df7ee6fa get_default_frontpage_role_access() should prolly not load overrides below course level 2007-09-26 07:19:30 +00:00
toyomoyo
4e1fe7d109 MDL-11143, adding a new setting "defaultfrontpageroleid" where you choose a role for all users on the front page 2007-09-26 07:12:38 +00:00
moodler
5dec234de7 Allow the Admin tree block to be displayed on the My Moodle page.
Reported in NZ workshop.     MDL-11450
2007-09-26 02:33:43 +00:00
gbateson
b64748eb54 corrected include path for "moodleform_mod.php"; changed $course->id to $COURSE->id; 2007-09-25 21:43:39 +00:00
nicolasconnault
d32100a522 Fixing OU report issues 2007-09-25 19:32:29 +00:00
tjhunt
f22bc9dbcb MDL-10402 - udpate the Main glossary help file, to clarify the position with Main glossaries since Moodle 1.7. 2007-09-25 17:18:08 +00:00
sam_marshall
4d8e340715 MDL-11443 Added groups_get_grouping_name to match groups_get_group_name 2007-09-25 15:52:33 +00:00
nfreear
6285f8a882 Fix MDL-7436 Accessibility "Indicate type of resource in the name of the resource" 2007-09-25 15:15:07 +00:00
nfreear
42ead7d7cd Fix MDL-7436 Accessibility "Indicate type of resource in the name of the resource" 2007-09-25 14:59:16 +00:00
tjhunt
f8f95b454a MDL-10898 - Option to back up only selected role assignements when backing up a course with users. 2007-09-25 14:44:53 +00:00
nicolasconnault
31a6c06c46 MDL-11433 Implemented grade_items.decimals instead of user preference in grader report. 2007-09-25 14:40:49 +00:00
tjhunt
c0ca082d2f Remove spurious characters from some SQL statements. 2007-09-25 14:39:42 +00:00
skodak
6510b0f09c MDL-11415 fixed our non-standard lang attributes in html purifier 2007-09-25 14:34:13 +00:00
skodak
0352cd2ffa MDL-11413 I hope now it is correct solution 2007-09-25 14:02:53 +00:00
skodak
e2fa911b73 MDL-11440 working fix for require_user_key_login() 2007-09-25 12:31:39 +00:00
nfreear
f4a01ab61f MDL-1149 Accessibility: Current week/topic is NOT indicated non-visually, only in styling. 2007-09-25 12:05:36 +00:00
nfreear
e9b9c1d810 MDL-1149 Accessibility: Current week is NOT indicated non-visually, only in styling. 2007-09-25 12:00:51 +00:00
nfreear
0d0afd968d MDL-11436, Encapsulate "accesshide" HTML class in function, and use. Merged. 2007-09-25 11:34:40 +00:00
nfreear
1d75edd0ae MDL-11436, Encapsulate "accesshide" HTML class in function. 2007-09-25 11:33:30 +00:00
skodak
5e2fbccb33 no text formating in grade xml export for now - we need the original values for reimport 2007-09-25 11:02:12 +00:00
nicolasconnault
b39b58fe45 MDL-11433 Correcting non-null and default value (Default will be NULL) 2007-09-25 09:47:40 +00:00
skodak
f44762bd6f MDL-11434 $CFG->filelifetime = 0 has no effect; patch by Chris Fryer 2007-09-25 09:37:58 +00:00
nicolasconnault
52cb2e4716 MDL-11433 Added decimals field to grade_items table 2007-09-25 08:35:16 +00:00
nicolasconnault
1796708d81 Replacing GRADE_REPORT_GRADE_DISPLAY_TYPE... by GRADE_DISPLAY_TYPE... 2007-09-25 08:22:20 +00:00