From 60fa55d54f4f41044cf61726f6d97be502d7e28d Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Mon, 1 Mar 2010 22:06:15 +0000 Subject: [PATCH] BUGFIX: Fixed ajax refresh of SubsitesTreeDropdownField (see http://mingle.silverstripe.com/projects/air_nz_cms_enhancements/cards/205) (from r88936) (from r96293) --- javascript/SubsitesTreeDropdownField.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/javascript/SubsitesTreeDropdownField.js b/javascript/SubsitesTreeDropdownField.js index b1f43ce..05fc780 100644 --- a/javascript/SubsitesTreeDropdownField.js +++ b/javascript/SubsitesTreeDropdownField.js @@ -45,8 +45,7 @@ SubsitesTreeDropdownField.prototype = { while (tree && !tree.className.match(/(^| )SubsitesTreeDropdownField( |$)/)) tree = tree.parentNode; // Customized: Append subsiteid (evaluated in SubsitesVirtualPage.php) - ajaxURL += '&' + this.options.dropdownField.inputTag.name + '_SubsiteID=' + parseInt(this.options.dropdownField.subsiteID()); - ajaxURL += $('SecurityID') ? '&SecurityID=' + $('SecurityID').value : ''; + ajaxURL += '&' + this.id + '_SubsiteID=' + parseInt(this.tree.options.dropdownField.subsiteID()); new Ajax.Request(ajaxURL, { onSuccess : this.installSubtree.bind(this),