Commit graph

35864 commits

Author SHA1 Message Date
tjhunt
e0b7cfcb31 quiz settings: MDL-18583 When a quiz has no grade, make it clear that you can only enter one lot of overall feedback.
When the maximum grade for the quiz is 0, we disable all the overall feedback form controls except for the first, and display an explanitory message.
2009-03-18 07:33:56 +00:00
tjhunt
414f7bee6b formslib: MDL-15827 disabledif option to repeat_elements did not work if you depend on another repeated element.
Patch thanks to Matthieu Nué.
2009-03-18 07:08:18 +00:00
tjhunt
80f7bafdab question bank: MDL-18531 Sorry, capability name typo. 2009-03-18 05:33:56 +00:00
tjhunt
5ecfab5148 quiz outline report: MDL-18285 Show regrade date, not last attempt date.
I also took the opportunity to clean up the code a bit.
2009-03-18 05:16:49 +00:00
tjhunt
353b2d700d question bank: MDL-18531 if someone can use questions in the quiz context, but not the course context, choose a more sensible default category in the question bank. Merged from MOODLE_19_STABLE. 2009-03-18 05:02:27 +00:00
moodlerobot
89175225bf Updated the HEAD build version to 20090318 2009-03-17 23:37:36 +00:00
mark-nielsen
ab1e7c397f shortanswer grading: MDL-18347 shortanswer was not grading correctly with custom scoring set to No, merged from 19 2009-03-17 16:27:40 +00:00
sam_marshall
fdec3d4f88 MDL-18582: Made config.php consistently require_once 2009-03-17 10:52:27 +00:00
tjhunt
3e10e4292d quiz editing: MDL-17454 first attemtp, and MDL-18554
This is a minimal fix for MDL-18554, I have just added a cancel button and made it work.

The more substantial part of this is MDL-17454, trying to make the quiz editing screen behave appropriately when shuffle questions is on. I am sure Olli will have opinions about this and want to change it further. Rought summary:
* When shufflequestions is off, never restrict manual paging, even if questionsperpage is set.
* When shuffle questions is on:
** Always display the quiz with the defined number of questions per page.
** Remove controls to add things except at the end of the quiz.
** Disable most of the order and paging tab, but still allow the question list to be reordered, in case that helps teachers track which questions they have added.
** Still allow questions to be reordered on the edit tab, but when moving the top question on a page up, reorder with the previous question, rather than moving to the previous page.
* Change the status bar, so that the yellow highlight is reserved for alert information. The more informative stuff is now plain, and moved to under the title. To my mind that associates it more closely with the quiz name. Also it moves Total of grades and Maximum grade closer together.
* JavaScript cleaned up. I learn more about YUI every day.
* Some PHP code clean ups that I forgot to commit separately before making substantive changes.
2009-03-17 09:51:34 +00:00
tjhunt
babcc520a7 Minor coding style cleanup. 2009-03-17 08:34:56 +00:00
tjhunt
de57941d2a quiz editing: unindent entire file. 2009-03-17 08:21:37 +00:00
tjhunt
b4a33c4ba6 formslib dates: MDL-16592 Forgot to commit these stylesheet changes. 2009-03-17 07:15:51 +00:00
tjhunt
c34760f93c Whitespace fix. 2009-03-17 07:14:14 +00:00
tjhunt
8c87920373 quiz settings: MDL-17333 drat, missed one lang string. 2009-03-17 07:10:45 +00:00
tjhunt
eeab18f0b3 quiz settings: MDL-17333 Resolve the interrelations between shufflequestions and questionsperpage.
* change the wording of the settings.
* add a repaginate now checkbox (disabled if shuffle is on).
* JavaScript to automatically check the checkbox when qpp changes.
* (remove some irrelevant return value checks now we use exceptions.)
2009-03-17 07:08:33 +00:00
dongsheng
64115dc8b3 "REPOSITORY/MDL-18520, hard-coded block list in file system plugin" 2009-03-17 05:21:03 +00:00
tjhunt
cf0e8bdba8 database mod: XHTML strict! 2009-03-17 04:28:47 +00:00
tjhunt
66aa084c6d database mod: XHTML strict! 2009-03-17 04:22:48 +00:00
moodlerobot
500d08eb1e Updated the HEAD build version to 20090317 2009-03-16 23:34:25 +00:00
stronk7
cf8a2e9f8d MDL-18576 timezones - info updated to tzdata2009c ; merged from 19_STABLE 2009-03-16 17:55:26 +00:00
thepurpleblob
268104371b MDL-18567:
Check for (boolean) false coming back from database instead of real data

Merged from STABLE_19
2009-03-16 16:37:31 +00:00
thepurpleblob
410b53deed MDL-18542
Can now uncheck checkboxes and have them stored correctly.

Merged from STABLE_19
2009-03-16 15:38:06 +00:00
thepurpleblob
c95defa90b MDL-18555:
Adding better handling for unsupported question types.

Merged from STABLE_19
2009-03-16 14:25:30 +00:00
jerome
d0977acf53 web service MDL-12886 remove tmp prefix 2009-03-16 07:58:30 +00:00
tjhunt
8f732f2ec7 formslib dates: MDL-16592 Take out copy-and-paste snafu 2009-03-16 07:47:01 +00:00
tjhunt
b3a4937663 formslib dates: MDL-16592 by popular demand, a close icon on the popup. 2009-03-16 07:38:27 +00:00
tjhunt
feed81934b course settings: use the optional option on date selectors, rather than a manua disabled checkbox. Also use new duration element. 2009-03-16 06:09:43 +00:00
tjhunt
b51709c14c formslib disabledif: MDL-18522 make it work if either end of a disabledif relationship is a set of radio buttons. 2009-03-16 06:09:05 +00:00
tjhunt
562b75b21f formslib durations: MDL-18500 Let the form control the default unit. 2009-03-16 05:57:25 +00:00
jerome
8a948bfc9a web service MDL-12886 restrict return type for get_groupmembers 2009-03-16 05:54:28 +00:00
tjhunt
bd55319b37 formslib dates: MDL-16592 fix a couple of remaining niggles.
* Hide when focus leaves in almost all cases.
* Reposition the calendar after a delay after changing to a month with a different number of weeks.
2009-03-16 03:42:14 +00:00
tjhunt
9bad31f562 formslib dates: MDL-16592 Fix problem when trying to select a time when the calendar is not visible. 2009-03-16 02:27:08 +00:00
dongsheng
a53d4f45c4 "REPOSITORY/MDL-13766, create prepare_file function, it will prepare temp file for repository api" 2009-03-16 02:16:50 +00:00
tjhunt
f6b6861d9d javascript: MDL-18568 We don't need a function called uncheckall, as well as one called checknone!
Also, clean up coding style in the popupchecker function.
2009-03-16 02:11:15 +00:00
jerome
991c215b05 web service MDL-12886 specify params for update and delete user ws functions. Check that the user exists into update_user core function. 2009-03-16 02:08:12 +00:00
tjhunt
5995f17f72 qtypes: MDL-18559 questions showing penalty information when they shouldn't.
We had a !== when it should have been !=, and our constants were defined as strings not ints. This problem has been there since forever, but no one had noticed before. Thanks to Alan Trick for finally spotting it!
2009-03-16 01:52:47 +00:00
gbateson
94328e504c recalcualte grades when HotPot grading method changes 2009-03-16 01:52:15 +00:00
dongsheng
c052a9ceca "REPOSITORY/MDL-18546, use require_js to include javascript files, see tracker for more details" 2009-03-16 01:41:26 +00:00
moodlerobot
f5aa7dcce1 Updated the HEAD build version to 20090316 2009-03-15 23:32:23 +00:00
skodak
4d3e28a06c MDL-18265 fixed regression in menu field - discovered and patched by Vlas Voloshin, thanks!; merged from MOODLE_19_STABLE 2009-03-15 13:44:28 +00:00
skodak
cb551e3625 MDL-18550 fixed DML typo and bad coding style - yes sam, whitespace is part of the official coding style! thanks nigel daley for spotting of the typo 2009-03-15 13:29:40 +00:00
moodlerobot
0e3c8f8cf7 Updated the HEAD build version to 20090315 2009-03-14 23:36:47 +00:00
moodlerobot
a4222f5a77 Updated the HEAD build version to 20090314 2009-03-13 23:32:47 +00:00
pilpi
3419d39f8b quiz editing: MDL-18556 In quiz reordering tab, eye fails to group questions/pages correctly
Changed the coloring, margins and paddings slightly to enhance grouping.
2009-03-13 15:47:08 +00:00
agrabs
b7a479588a MDL-17721 - feedback items now have a label which is printed on analysing and excel
export
2009-03-13 14:35:25 +00:00
tjhunt
8e7cebb0d8 formslib dates: MDL-16592 show a pop-up calendar for picking dates.
Not quite finished. There is a small issue with keyboard focus. See bug.
2009-03-13 09:56:53 +00:00
tjhunt
5f5b443ea8 gift import: MDL-18390 better way to get the question type name. 2009-03-13 09:19:01 +00:00
jerome
0d4723ee62 web service MDL-12886 check that a user is a course participant before to add it to a group 2009-03-13 06:51:30 +00:00
dongsheng
fe4126c8c3 "REPOSITORY, SMB/MDL-16907, remove smb plugin from core" 2009-03-13 02:59:45 +00:00
dongsheng
520de3434b "REPOSITORY/MDL-18520, file system plugin added" 2009-03-13 02:54:28 +00:00