From 3e4ebdcda4030e4d6e86fe466a7c2845179ab9ef Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 3 Apr 2012 14:39:00 -0400 Subject: [PATCH] Org Unit Custom Tree supports add directly after delete When deleting a node from the custom tree, it's necessary to save the tree store after the final call to store.deleteItem, or the delete operation will not complete. Without this, it's not possible to add a remove org unit back into the custom tree without reloading the UI. Signed-off-by: Bill Erickson Signed-off-by: Mike Rylander --- Open-ILS/web/js/ui/default/conify/global/actor/org_unit_custom_tree.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Open-ILS/web/js/ui/default/conify/global/actor/org_unit_custom_tree.js b/Open-ILS/web/js/ui/default/conify/global/actor/org_unit_custom_tree.js index 909de62806..88d35dca49 100644 --- a/Open-ILS/web/js/ui/default/conify/global/actor/org_unit_custom_tree.js +++ b/Open-ILS/web/js/ui/default/conify/global/actor/org_unit_custom_tree.js @@ -246,6 +246,9 @@ function deleteSelected() { ); } ); + + // otherwise, delete is only superficial + magicTree.model.store.save(); } function activateTree() { -- 2.11.0