Changeset 14516


Ignore:
Timestamp:
Apr 7, 2015, 7:31:34 PM (9 years ago)
Author:
Ryan J Ollos
Message:

2.2.0dev: Allow form resubmission in Trac >= 1.0.2.

Multiple form submission is disallowed in Trac 1.0.2 by the presence of the trac-submit-is-disabled class. The class is removed by DynamicFieldsPlugin in the form validation submit event handler when preventing submission of the form, so that form submission is possible after correcting the validation error. Refs #12258.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dynamicfieldsplugin/trunk/dynfields/htdocs/rules.js

    r14357 r14516  
    296296                    }
    297297                    alert(msg);
     298                    // Allow form to be submitted again.
     299                    form.removeClass('trac-submit-is-disabled');
    298300                    field.focus();
    299301                }
Note: See TracChangeset for help on using the changeset viewer.