mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX Use onadd instead of onmatch on cms-add-form when creating new page #673
This commit is contained in:
parent
125edeb12e
commit
c18f3fe446
@ -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();
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user