BUGFIX Fixed 'onreset' behaviour for IE in CMSMain.js

This commit is contained in:
Ingo Schommer 2011-03-22 16:43:49 +13:00
parent 2497f37f58
commit 6700abe570

View File

@ -62,7 +62,12 @@
var others = self.find('.field').not($(this).parents('.field')).find(':input,select');
if(e.target.value == 'CMSSiteTreeFilter_Search') others.removeAttr('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();
},
@ -125,7 +130,7 @@
* Parameters:
* (Event) e
*/
onreset: function(e) {
_onreset: function(e) {
this.find('.field :input').clearFields();
this.find('.field').not('.show-default').hide();