Permalink
Browse files

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

  • Loading branch information...
1 parent 2497f37 commit 6700abe5703cbc7404e6658b55078cbc35a013f5 @chillu chillu committed Mar 22, 2011
Showing with 7 additions and 2 deletions.
  1. +7 −2 javascript/CMSMain.js
View
9 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();

0 comments on commit 6700abe

Please sign in to comment.