From 6700abe5703cbc7404e6658b55078cbc35a013f5 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 22 Mar 2011 16:43:49 +1300 Subject: [PATCH] BUGFIX Fixed 'onreset' behaviour for IE in CMSMain.js --- javascript/CMSMain.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/javascript/CMSMain.js b/javascript/CMSMain.js index c2a8c9a8..5ac06f14 100644 --- a/javascript/CMSMain.js +++ b/javascript/CMSMain.js @@ -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();