From 2a7e3e0c0db2beb1604c0a2b277f3caef0d3f891 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 --- 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 695a9c4685..e851c3b832 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 @@ -243,6 +243,9 @@ function deleteSelected() { ); } ); + + // otherwise, delete is only superficial + magicTree.model.store.save(); } function activateTree() { -- 2.11.0