427 Commits

Author SHA1 Message Date
Petr Skoda
f59f03ad2d MDL-32569 drop more core simpletests that were already migrated 2012-04-21 16:27:30 +02:00
Petr Skoda
66b3302dec MDL-32405 workaround for non-static PEAR::raise_error() and fixed -1 debug support 2012-04-15 17:02:26 +02:00
Sam Hemelryk
3211569a6a Revert "MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag"
This reverts commit f9f281b8fee75c2416d71bae7583fd026b9ccabb.
2012-04-11 17:18:58 +12:00
Sam Hemelryk
e19dc11e51 MDL-30843 editor: Fixed up out of place if 2012-04-11 09:22:14 +12:00
Sam Hemelryk
5bfeb5ffd3 Merge branch 'MDL-30843_b' of git://github.com/rwijaya/moodle 2012-04-10 12:34:37 +12:00
Petr Skoda
a3d5830a0a MDL-32149 PHPUnit test support - part 2
Includes:
* constants refactoring
* reworked db table init
* support for $CFG->debug = -1
* functional DB tests
* fixed $DB->get_indexes() to not throw exceptions when table does not exist
* fix handling of user passwords in test db
* add debug info to exception messages
* removed unnecessary PHP debug errors from mathslib
* fixed @error suppression in get_string
* fixed PHPUnit error handler setup
* added timezone info to default install
2012-04-03 22:30:53 +02:00
Rossiani Wijaya
f9f281b8fe MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag 2012-03-30 16:26:58 +08:00
Rajesh Taneja
91f7f8c1c1 MDL-32150 Libraries: checkbox controller will not check or uncheck freezed checkboxes 2012-03-30 13:04:04 +08:00
Petr Skoda
c2daa41a2e MDL-32094 fix duration test 2012-03-20 09:22:29 +01:00
Petr Skoda
e2bb3c9275 MDL-32094 some more E_STRICT fixes 2012-03-18 20:40:20 +01:00
Petr Skoda
fabbf4398b MDL-32094 some nasty quickforms hacks that should help with E_STRICT
Note: we have stopped tracking our QuickForms hacks long ago.
2012-03-18 18:39:37 +01:00
Eloy Lafuente (stronk7)
f7acd639a5 MDL-28972 formslib: whitespace fixes 2012-03-14 18:10:24 +01:00
Rajesh Taneja
c14584f206 MDL-28972 formslib: Checkbox controller will use yui to select and unselect checkboxes 2012-03-12 10:25:21 +08:00
Sam Hemelryk
36d1d23179 Merge branch 'MDL-31642_dndupload_filemanager_notification_text' of git://github.com/davosmith/moodle 2012-03-05 13:31:08 +13:00
Sam Hemelryk
9b0e5e9d0d Merge branch 'MDL-31643_dndupload_reject_all_files' of git://github.com/davosmith/moodle 2012-03-05 13:22:04 +13:00
Sam Hemelryk
8498e630af Merge branch 'MDL-31656-master-3' of git://git.luns.net.uk/moodle 2012-03-05 11:09:29 +13:00
Sam Hemelryk
a5dd1f4fb7 MDL-31660 forms: Added checks for form change detection 2012-03-05 11:00:14 +13:00
Sam Hemelryk
f788011045 Merge branch 'MDL-31660-master-3' of git://git.luns.net.uk/moodle 2012-03-05 10:59:22 +13:00
Davo Smith
adce023069 MDL-31642 added 'max attachments' to filemanager and 'drag and drop' message inside the box 2012-03-01 11:57:32 +00:00
Davo Smith
2561d6346c MDL-31643 dndupload - prevent file upload when total file count would exceed the specified limit 2012-03-01 11:56:53 +00:00
Andrew Robert Nicols
88939271a1 MDL-31660 Rename form change detection javascript file 2012-02-29 14:50:52 +00:00
Sun Zhigang
1ab8cd2e1c MDL-29523 filemanager: Fix a hardcode string 2012-02-27 09:35:11 +08:00
Sam Hemelryk
58b7d48f9a MDL-30974 forms: Last minute phpdoc fixes 2012-02-21 12:39:35 +13:00
Sam Hemelryk
ceaad88222 Merge branch 'wip-mdl-30974' of git://github.com/rajeshtaneja/moodle 2012-02-21 12:07:30 +13:00
Andrew Robert Nicols
f0a163ed6d MDL-31656 Open files in a new window when downloading with the filemanager
We need to open files in a new window rather than the existing window  to
prevent warning messages when files are uploaded and then downloaded
without the form being saved first.
2012-02-20 10:50:16 +00:00
Rajesh Taneja
6c1fd30484 MDL-30974 form: Checked and updated docblock for form library 2012-02-15 12:55:06 +08:00
Davo Smith
7d44996c2a MDL-31114 Filemanager drag and drop upload - displays 'drop here' message when dragging over page / highlights when over element 2012-02-14 10:12:58 +00:00
Davo Smith
36dc50336e MDL-31114 Alert when max files reached 2012-02-14 09:49:49 +00:00
Aparup Banerjee
21a7f3d27a Merge branch 'MDL-31321_dndupload_multiple_elements' of https://github.com/davosmith/moodle 2012-02-14 14:47:23 +08:00
Andrew Robert Nicols
00e8d08dba MDL-31315 Ask before moving away from a modified form 2012-02-09 14:55:18 +00:00
Davo Smith
6d9121d3a8 MDL-31321 Drag and drop upload - can now cope with multiple filemanager/filepickers on a page 2012-02-07 07:45:41 +00:00
Eloy Lafuente (stronk7)
478ba353b0 Merge branch 'MDL-31113_multiple_files_file_manager' of https://github.com/davosmith/moodle 2012-01-25 01:06:00 +01:00
Eloy Lafuente (stronk7)
897e14e263 Merge branch 'MDL-31110_loading_animation' of git://github.com/davosmith/moodle 2012-01-25 01:02:30 +01:00
Davo Smith
910e1ecdaa MDL-31113 filemanager element - refresh file list from server on load and prevent revertion to browser drag and drop behaviour when max files reached 2012-01-19 19:28:16 +00:00
Davo Smith
4069ae323d MDL-31110 Filemanager drag and drop upload - always hide spinner, even when errors occur 2012-01-19 19:21:27 +00:00
sam marshall
ea47046689 MDL-31153 File manager drag and drop English text improvement 2012-01-19 14:49:21 +00:00
Petr Skoda
48cbe43ded MDL-31213 fix incorrect modifications of quickforms attributes 2012-01-17 11:18:56 +01:00
Sam Hemelryk
6b37c2b093 MDL-31000 Added comment about the importance of repository array keys and hardened new dnd repository lookup 2012-01-10 12:21:24 +13:00
Davo Smith
f08fac7c89 MDL-29766 Add drag and drop upload to filemanager / filepicker elements 2012-01-09 17:27:32 +00:00
Sam Hemelryk
3b53b85b47 Merge branch 'w52_MDL-29917_m23_autocomplete' of git://github.com/skodak/moodle 2012-01-04 10:58:03 +13:00
Petr Skoda
6e9989dbd3 MDL-29917 prevent form autocompletion in most Moodle forms
The password autocompletion in case of Moodle makes sense only on the login page, the form autocompletion in general is most probably useful only on the user signup page.

This patch is compatible with html 5, unfortunately we have to ignore strict warnings in legacy xhtml 1.0 standard.
2011-12-30 14:38:52 +01:00
Tim Hunt
820b41e34f MDL-30168 formslib: untangle automatic id generation.
Previously, we had overridden the _generateId method in almost all
subclasses; and then we mostly, but not always; ignored the value that
was generated there, and instead generated new (nicer) values in
MoodleQuickForm_Renderer::renderElement. Of course, that is not really a
logical place to (re)generate ids.

I have fixed the code so that the _generateId method now uses the 'nice
id' algorithm from renderElement. This should make the whole code flow
more logical.

This make all our overriding of _generateId unnecessary.

We do need a special _generateId for radio buttons, because you often
have different radio buttons with the same name but different values.

This change should only change the ids on radio, checkbox and
advcheckbox elements. Previously, those were essentially random, so I
don't think anyone could have been relying on the particular values.

This commit also has new unit tests, first to test the basic _generateId
algorithm, and then to create and render an example form (including some
tricky things like repeat_elements) and chech the acutal ids in the
generated HTML.
2011-12-23 11:51:45 +00:00
Rossiani Wijaya
8367651ee4 MDL-29239 fixed edit course setting for moodle/course:changesummary permission is set to prevent. 2011-12-12 15:52:13 +08:00
Petr Skoda
b608b227ba MDL-27364 use https for recaptcha when site runs via https
Based on solution by Rajesh Taneja.
2011-12-06 12:00:32 +01:00
Tim Hunt
8f6384a9ec MDL-27045 formslib: fix disabledif for advcheckbox
This is based on earlier work by Henning Bostelmann and Tom Potts.
2011-11-17 17:57:27 +00:00
Sam Hemelryk
1ae9aa2b8f Merged MDL-29108 Advanced grading 2011-11-14 22:01:05 +13:00
Marina Glancy
3c2b3cb3ee MDL-29108: added comments, declared functions visibility, renamed variables; also fixed MDL-30240 2011-11-14 14:53:14 +08:00
Jason Fowler
483239087c MDL24200 - Admin Users - Changing the submit button to just a button to prevent it from taking focus when entering text. (Patch provided by Hubert Chathi) 2011-11-07 15:29:11 +08:00
David Mudrak
01609c9ad9 Merge remote branch 'origin/master' into rubric
Conflicts:
	lib/db/upgrade.php
	version.php
2011-10-24 22:13:01 +02:00
Marina Glancy
36937f0264 MDL-29483: advanced grading methods support on assignment module, grading form element, rubrics
- gradingform API now has not only controller class but also instance class with functions and data related to the particular grading instance
- assignment grading form and grading form element deal with elements of gradingform_instance class instead of gradingform_controller
- implemented the class gradingform_rubric_instance
- added more phpdocs
2011-10-20 12:15:51 +08:00