Jun Pataleta
36e0030ffe
MDL-50852 formslib: Fixed client-side form validation problem.
...
This patch fixes the problem of client validation being broken when
shortforms is not enabled. This issue is caused by moodle-core-event
module not being loaded and the broadcast parameter in the
Y.Global.publish set to 2 instead of true.
2015-09-09 15:35:01 +08:00
Marina Glancy
a3c9174b3d
MDL-50791 forms: make server validation errors accessible
2015-08-12 13:23:08 +08:00
John Okely
380001929a
MDL-45772 admin: Stop browsers from autofilling passwords incorrectly
2015-08-04 09:54:34 +08:00
Martin Mastny
9cf1b21127
MDL-50186 forms: Removed special characters from id attribute
2015-05-28 11:41:51 +08:00
Martin Mastny
eaec9cfec7
MDL-49783 forms: Collapsed form section is opened on error
2015-05-07 08:57:30 +08:00
Tim Hunt
b3d388c234
MDL-49284 formslib: fix strict validation of HTML.
2015-02-25 17:39:36 +00:00
Brian Barnes
bbb0733297
MDL-45955 forms: replaced labels in static text elements
2014-12-10 17:28:09 +13:00
Paul Holden
68ef378b1b
MDL-44657 forms: Form identifiers should only contain basic characters
2014-11-13 16:20:28 +08:00
Marina Glancy
bf8542ce3a
MDL-30358 forms: strict validation is too strict
2014-10-15 11:57:01 +08:00
Damyon Wiese
63e604f8b1
Merge branch 'w08_MDL-42889_m27_vir' of https://github.com/skodak/moodle
2014-02-25 10:32:44 +08:00
Petr Škoda
114e3209b1
MDL-42889 cleanup obsolete clam relatd code
...
Since 2.0 all uploaded files need to go through the file picker which does the scanning,
the idea is that it is more important to warn users that their computer is crawling
with viruses. All teachers are supposed to have local up-to-date antivirus software!
Since 2.0 we are not scanning existing files on server, in future we might use the
status flag in files table to indicate the file is problematic, but still we should
never detele anthing from the filedir...
2014-02-18 09:22:30 +08:00
Andrew Nicols
d4e438718e
MDL-43969 Forms: Adjust ARIA attributes for short forms
...
The aria-live="polite" attribute is incorrectly added to the fieldset,
causing the entire fieldset to be read out on change in some browsers. This
is unnecessary.
It also does not announce the current state of the fieldset (collaped or
open) and should.
2014-02-07 16:17:13 +08:00
Sam Hemelryk
12f46583f0
Merge branch 'MDL-43093' of git://github.com/timhunt/moodle
2013-12-04 10:12:12 +13:00
Sam Hemelryk
db9c8f4c7d
Merge branch 'MDL-42919-master' of git://github.com/damyon/moodle
2013-12-04 09:43:43 +13:00
Tim Hunt
b2f1717143
MDL-43093 update repeat_elements PHPdoc.
2013-12-02 17:48:44 +00:00
Petr Škoda
a377754770
MDL-41819 try to work around max_input_vars restriction
2013-12-02 08:29:08 +08:00
Damyon Wiese
e6b1d132cb
MDL-41919 Forms: Add a class to form elements with an empty label
...
This means they can be styled properly when the form is folded with
the labels above the form fields.
2013-11-26 13:28:51 +08:00
Davo Smith
d79d07175e
MDL-35402 forms - prevent crash when multiple rules defined on an editor element
2013-10-15 14:30:33 +01:00
Paul Nicholls
59de735095
MDL-41451 - formslib: use create_function instead of inline function
...
As per MDL-39432, closure-style inline functions can result in fatal
errors when using eAccelerator and thus should be avoided.
2013-09-09 11:21:33 +12:00
Paul Nicholls
85b82a9c2f
MDL-41451 - Large forms are truncated by max_input_vars
...
By parsing php://input in chunks, we can bypass max_input_vars for
forms which do not use the "multipart/form-data" enctype. This can
be (and is) safely skipped if there are fewer than max_input_vars
fields submitted as part of $_POST.
2013-09-06 14:16:20 +12:00
Dan Poltawski
52ef7502d6
Merge branch 'MDL-30839-master' of git://github.com/phalacee/moodle
2013-08-22 11:17:49 +08:00
Jason Fowler
72d08bd153
MDL-30839 Accessibility - Focusing on error on submit
2013-08-22 10:54:19 +08:00
Dan Poltawski
695969987a
Merge branch 'MDL-30839-master' of git://github.com/phalacee/moodle
2013-08-22 10:14:21 +08:00
Jason Fowler
5df7412899
MDL-30839 Fixing extra line breaks in error msg
2013-08-22 09:04:30 +08:00
Dan Poltawski
046514b7a2
Merge branch 'MDL-30839-master' of git://github.com/phalacee/moodle
2013-08-21 15:17:44 +08:00
Jason Fowler
f8a4f2c10e
MDL-30839 Fixing extra line breaks in error msg
2013-08-21 14:58:50 +08:00
Dan Poltawski
6f44a73369
Merge branch 'w33_MDL-39474_m26_debugdeveloper' of https://github.com/skodak/moodle
...
Conflicts:
lib/upgrade.txt
2013-08-20 11:42:03 +08:00
Jason Fowler
0c99005a9a
MDL-30839 Accessibility, Forms - Improve accessibility or error messages
2013-08-19 09:54:41 +08:00
Petr Škoda
96f81ea385
MDL-39474 introduce $CFG->debugdeveloper and cleanup $CFG init
2013-08-12 13:01:47 +02:00
Damyon Wiese
a3e57854fc
MDL-36005 formslib: Move the help icons out of the form labels for accessibility.
2013-08-01 16:39:34 +08:00
Jamie Pratt
faaf80fadb
MDL-40176 mock_submit method for testing
2013-07-09 15:07:36 +08:00
Sam Hemelryk
615a5aa6f1
Merge branch 'MDL-39280-master-int' of git://github.com/FMCorz/moodle
2013-06-24 14:19:20 +12:00
Sam Hemelryk
80b3780a53
Revert "MDL-38555 forms: Prevent same data submission multiple times."
...
This reverts commit 761670208a97c0ed7e1ff7c2e6a7ec5494eb93d3.
2013-06-19 13:45:46 +12:00
Ruslan Kabalin
761670208a
MDL-38555 forms: Prevent same data submission multiple times.
...
This disables Submit button when the form has been submitted to
prevent consequent submissions before the page has been loaded.
2013-06-12 15:19:47 +01:00
Frederic Massart
188c04b0a8
MDL-39579 form: Type can be set on repeated elements in a group
2013-05-10 12:05:43 +08:00
Frederic Massart
58f3865fce
MDL-39280 form: Multiple select support disabledIf with multiple values
2013-05-10 09:33:46 +08:00
Frederic Massart
d5909fd144
MDL-38885 form: Fix comments and stricter unit test
2013-05-10 08:34:59 +08:00
Frederic Massart
8a9c3f4951
MDL-38885 form: Advanced type checking on special elements
2013-05-10 08:17:40 +08:00
Frederic Massart
3c0ba94e87
MDL-38885 form: Recursively clean parameters based on right type
2013-05-10 08:17:40 +08:00
Frederic Massart
87c1c82286
MDL-38716 accessibility: ARIA attributes and roles defined on form actions
2013-04-15 11:46:05 +08:00
Eloy Lafuente (stronk7)
577173a51f
Merge branch 'MDL-38897-master' of git://github.com/danpoltawski/moodle
2013-04-05 03:21:52 +02:00
Dan Poltawski
48056d5459
MDL-38885 - don't test for setType in display() itself
...
Doing it in _process_submission is enough.
2013-04-04 14:58:14 +08:00
Dan Poltawski
dc4260d918
Merge branch 'MDL-38681-master-int' of git://github.com/FMCorz/moodle
2013-04-03 14:27:08 +08:00
Dan Poltawski
15c2b2c43a
Merge branch 'MDL-26956' of git://github.com/timhunt/moodle
2013-04-02 19:49:02 +08:00
sam marshall
d953b18495
MDL-26956 (2) Forms: Function to render form to string
...
Previously it was only possible to display the form immediately as
HTML output. You had to wrap in an output buffer in order to put
it in a renderer. This new function does the output buffer for you.
2013-03-28 10:46:33 +00:00
Frederic Massart
a4b076d51b
MDL-38681 form: Changed collapse/expand button to a link
2013-03-28 10:18:58 +08:00
Frederic Massart
90a7e556af
MDL-38455 form: More consistency in section states
...
- A short form of 2 sections has collapsible sections;
- The second section is expanded by default if the form has 2 sections;
- The collapsed state by setExpanded can override the state in which
the section was when it was submitted by the user;
- A header containing a required field or one that has an error
will never be collapsed.
2013-03-28 10:03:33 +08:00
Eloy Lafuente (stronk7)
caa30cd625
MDL-38719 forms: detectMissingSetType() handle of repetitions.
...
It seems that formslib, for repetition, relies in the type
especified by the main (non existent at the end) element, instead
of assingning a type to each repetition.
Surely a result of storing types apart from elements. :-(
With the patch, detectMissingSetType() will detect
repeated elements (name containing '[') and will
perform the verification against that main element type.
2013-03-26 13:28:47 +01:00
Damyon Wiese
8af0dffb50
Merge branch 'MDL-34311-master' of git://github.com/danpoltawski/moodle
...
Conflicts:
course/moodleform_mod.php
lib/upgrade.txt
2013-03-26 13:46:29 +08:00
Dan Poltawski
b45ba7f6fa
MDL-34311 formslib: warn when no param type set
...
Params without a type set will not be getting cleaned, so if developers
really do not want cleaning, they should set it explicitly.
2013-03-25 09:30:51 +08:00