From: Bill Erickson Date: Tue, 3 Apr 2012 18:39:00 +0000 (-0400) Subject: Org Unit Custom Tree supports add directly after delete X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=669f24eb9001f99a4f28432fcad5dd16d99a5f85;p=Evergreen.git 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 --- 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() {