From 669f24eb9001f99a4f28432fcad5dd16d99a5f85 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