mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUGFIX Fixed 'onreset' behaviour for IE in CMSMain.js
This commit is contained in:
parent
2497f37f58
commit
6700abe570
@ -62,7 +62,12 @@
|
|||||||
var others = self.find('.field').not($(this).parents('.field')).find(':input,select');
|
var others = self.find('.field').not($(this).parents('.field')).find(':input,select');
|
||||||
if(e.target.value == 'CMSSiteTreeFilter_Search') others.removeAttr('disabled');
|
if(e.target.value == 'CMSSiteTreeFilter_Search') others.removeAttr('disabled');
|
||||||
else others.attr('disabled','disabled');
|
else others.attr('disabled','disabled');
|
||||||
})
|
});
|
||||||
|
|
||||||
|
// Reset binding through entwine doesn't work in IE
|
||||||
|
this.bind('reset', function(e) {
|
||||||
|
self._onreset(e);
|
||||||
|
});
|
||||||
|
|
||||||
this._super();
|
this._super();
|
||||||
},
|
},
|
||||||
@ -125,7 +130,7 @@
|
|||||||
* Parameters:
|
* Parameters:
|
||||||
* (Event) e
|
* (Event) e
|
||||||
*/
|
*/
|
||||||
onreset: function(e) {
|
_onreset: function(e) {
|
||||||
this.find('.field :input').clearFields();
|
this.find('.field :input').clearFields();
|
||||||
this.find('.field').not('.show-default').hide();
|
this.find('.field').not('.show-default').hide();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user