Skip to content

Commit

Permalink
BUGFIX Use onadd instead of onmatch on cms-add-form when creating new…
Browse files Browse the repository at this point in the history
… page #673
  • Loading branch information
patbolo committed Apr 7, 2013
1 parent 125edeb commit c18f3fe
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions javascript/CMSMain.AddForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,12 @@
});

$(".cms-add-form").entwine({
onmatch: function() {
onadd: function() {
var self = this;
this.find('#ParentID .TreeDropdownField').bind('change', function() {
self.updateTypeList();
});
this.updateTypeList();
this._super();
},
onunmatch: function() {
this._super();
},

/**
Expand Down

0 comments on commit c18f3fe

Please sign in to comment.