[open-ils-commits] [GIT] Evergreen ILS branch master updated. 3e4ebdcda4030e4d6e86fe466a7c2845179ab9ef

Evergreen Git git at git.evergreen-ils.org
Mon Apr 9 10:18:57 EDT 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  3e4ebdcda4030e4d6e86fe466a7c2845179ab9ef (commit)
      from  cc51f5424ba01e562b4fa0afaa4e36954e91642c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 3e4ebdcda4030e4d6e86fe466a7c2845179ab9ef
Author: Bill Erickson <berick at esilibrary.com>
Date:   Tue Apr 3 14:39:00 2012 -0400

    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 <berick at esilibrary.com>
    Signed-off-by: Mike Rylander <mrylander at gmail.com>

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 909de62..88d35dc 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() {

-----------------------------------------------------------------------

Summary of changes:
 .../conify/global/actor/org_unit_custom_tree.js    |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list