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:
Ingo Schommer 2008-12-02 03:31:47 +00:00 committed by Sam Minnee
parent 0ad968090a
commit d4265a0165

View File

@ -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 + '/';
},