mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #678 from patbolo/bugfix-673
BUGFIX Use onadd instead of onmatch on cms-add-form when creating new pa...
This commit is contained in:
commit
915582a54c
@ -15,16 +15,12 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
$(".cms-add-form").entwine({
|
$(".cms-add-form").entwine({
|
||||||
onmatch: function() {
|
onadd: function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
this.find('#ParentID .TreeDropdownField').bind('change', function() {
|
this.find('#ParentID .TreeDropdownField').bind('change', function() {
|
||||||
self.updateTypeList();
|
self.updateTypeList();
|
||||||
});
|
});
|
||||||
this.updateTypeList();
|
this.updateTypeList();
|
||||||
this._super();
|
|
||||||
},
|
|
||||||
onunmatch: function() {
|
|
||||||
this._super();
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user