Skip to content

Commit

Permalink
Merge pull request #133 from mateusz/entwines3
Browse files Browse the repository at this point in the history
BUGFIX: add missing onunmatches causing exceptions in entwine
  • Loading branch information
Sean Harvey committed May 18, 2012
2 parents 4e5e88e + 00734f5 commit 4f78187
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
Expand Up @@ -75,6 +75,9 @@

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

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

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

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

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

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

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

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

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

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

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

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

0 comments on commit 4f78187

Please sign in to comment.