Skip to content

Commit

Permalink
BUGFIX: add missing onunmatches causing exceptions in entwine
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusz committed May 18, 2012
1 parent 4e5e88e commit 00734f5
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 3 deletions.
5 changes: 4 additions & 1 deletion javascript/AssetAdmin.DragDrop.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@


this._super(); this._super();
}, },
onunmatch: function() {
this._super();
},
/** /**
* Function: onmousedown * Function: onmousedown
* *
Expand All @@ -90,4 +93,4 @@
} }
}); });
}); });
}(jQuery)); }(jQuery));
9 changes: 9 additions & 0 deletions javascript/CMSMain.AddForm.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
ghost: true ghost: true
}); });
this._super(); this._super();
},
onunmatch: function() {
this._super();
} }
}); });


Expand All @@ -19,6 +22,9 @@
if(this.is(':checked')) this.trigger('click'); if(this.is(':checked')) this.trigger('click');
this._super(); this._super();
}, },
onunmatch: function() {
this._super();
},
onclick: function() { onclick: function() {
var el = this.parents('li:first'); var el = this.parents('li:first');
el.setSelected(true); el.setSelected(true);
Expand Down Expand Up @@ -48,6 +54,9 @@
this.updateTypeList(); this.updateTypeList();
this._super(); this._super();
}, },
onunmatch: function() {
this._super();
},


/** /**
* Limit page type selection based on parent class. * Limit page type selection based on parent class.
Expand Down
12 changes: 12 additions & 0 deletions javascript/CMSMain.EditForm.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@


this._super(); this._super();
}, },
onunmatch: function() {
this._super();
},


/** /**
* Function: updateRelatedFields * Function: updateRelatedFields
Expand Down Expand Up @@ -132,6 +135,9 @@


this._super(); this._super();
}, },
onunmatch: function() {
this._super();
},


/** /**
* Function: _toggleSelection * Function: _toggleSelection
Expand Down Expand Up @@ -193,6 +199,9 @@
var currentVal = this.find('input[name=' + this.attr('id') + ']:checked').val(); var currentVal = this.find('input[name=' + this.attr('id') + ']:checked').val();
dropdown[currentVal == 'OnlyTheseUsers' ? 'show' : 'hide'](); dropdown[currentVal == 'OnlyTheseUsers' ? 'show' : 'hide']();


this._super();
},
onunmatch: function() {
this._super(); this._super();
} }
}); });
Expand Down Expand Up @@ -264,6 +273,9 @@
this.redraw(); this.redraw();
this._super(); this._super();
}, },
onunmatch: function() {
this._super();
},
redraw: function() { redraw: function() {
var treeField = $('.cms-edit-form.CMSPageSettingsController #ParentID'); var treeField = $('.cms-edit-form.CMSPageSettingsController #ParentID');
if ($(this).attr('id') == 'Form_EditForm_ParentType_root') treeField.slideUp(); if ($(this).attr('id') == 'Form_EditForm_ParentType_root') treeField.slideUp();
Expand Down
5 changes: 4 additions & 1 deletion javascript/CMSPageHistoryController.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@


this._super(); this._super();
}, },
onunmatch: function() {
this._super();
},
/** /**
* Function: submit. * Function: submit.
* *
Expand Down Expand Up @@ -153,4 +156,4 @@


}) })
}); });
})(jQuery); })(jQuery);
3 changes: 3 additions & 0 deletions javascript/RedirectorPage.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
if(self.attr('checked')) this.toggle(); if(self.attr('checked')) this.toggle();
this._super(); this._super();
}, },
onunmatch: function() {
this._super();
},
onclick: function() { onclick: function() {
this.toggle(); this.toggle();
}, },
Expand Down
5 changes: 4 additions & 1 deletion javascript/SiteTreeURLSegmentField.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@


this._super(); this._super();
}, },
onunmatch: function() {
this._super();
},


/** /**
* Function: edit * Function: edit
Expand Down Expand Up @@ -204,4 +207,4 @@
} }
}); });
}); });
}(jQuery)); }(jQuery));

0 comments on commit 00734f5

Please sign in to comment.