mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
ENHANCEMENT Added TreeDropdownField->refresh() js method
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@67139 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
0ad968090a
commit
d4265a0165
@ -35,6 +35,15 @@ TreeDropdownField.prototype = {
|
||||
}
|
||||
},
|
||||
|
||||
refresh: function() {
|
||||
this.createTreeNode();
|
||||
|
||||
this.ajaxGetTree( (function(response) {
|
||||
this.newTreeReady(response, false);
|
||||
this.updateTreeLabel();
|
||||
}).bind(this));
|
||||
},
|
||||
|
||||
helperURLBase: function() {
|
||||
return this.ownerForm().action + '/field/' + this.inputTag.name + '/';
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user