MDL-33874 Allow form fields to be ignored by the formchangechecker
This commit is contained in:
committed by
Sam Hemelryk
parent
bac9070359
commit
e7bf0155f7
+5
-1
@@ -88,7 +88,11 @@ YUI.add('moodle-core-formchangechecker',
|
||||
/**
|
||||
* Set the form changed state to true
|
||||
*/
|
||||
M.core_formchangechecker.set_form_changed = function() {
|
||||
M.core_formchangechecker.set_form_changed = function(e) {
|
||||
if (e.target.hasClass('ignoredirty')) {
|
||||
// Don't warn on elements with the ignoredirty class
|
||||
return;
|
||||
}
|
||||
M.core_formchangechecker.stateinformation.formchanged = 1;
|
||||
|
||||
// Once the form has been marked as dirty, we no longer need to keep track of form elements
|
||||
|
||||
Reference in New Issue
Block a user