[-] BO : BugFix : #PSTEST-788 : Treeview is now handled with shop context in admin category controller

This commit is contained in:
vChabot
2012-02-28 17:16:47 +00:00
parent 04d7e869d9
commit cd28a48b2f
3 changed files with 11 additions and 5 deletions
+4
View File
@@ -35,6 +35,9 @@ var id_category_root = 0;
function buildTreeView()
{
use_shop_context = false;
if (buildTreeView.arguments[0])
use_shop_context = true;
$("#categories-treeview").treeview({
url : 'ajax.php',
toggle: function () { callbackToggle($(this)); },
@@ -43,6 +46,7 @@ function buildTreeView()
async: true,
data: {
getChildrenCategories : true,
use_shop_context : use_shop_context,
selectedCat: selectedCat
}
}