[open-ils-commits] [GIT] Evergreen ILS branch master updated. 0891a8e8c2152e3c459d2686b2228453af4ec894

Evergreen Git git at git.evergreen-ils.org
Tue Mar 20 16:51:49 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  0891a8e8c2152e3c459d2686b2228453af4ec894 (commit)
      from  df055439b452778df68191b052035e3bb4c9a37a (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 0891a8e8c2152e3c459d2686b2228453af4ec894
Author: Jason Etheridge <jason at esilibrary.com>
Date:   Wed Jan 11 13:57:43 2012 -0500

    LP914821 template selection should be sticky
    
    in Unified Volume/Copy Editor.
    
    Signed-off-by: Jason Etheridge <jason at esilibrary.com>
    Signed-off-by: Jason Stephenson <jstephenson at mvlc.org>
    Signed-off-by: Mike Rylander <mrylander at gmail.com>

diff --git a/Open-ILS/xul/staff_client/server/cat/copy_editor.js b/Open-ILS/xul/staff_client/server/cat/copy_editor.js
index cf541ff..800c727 100644
--- a/Open-ILS/xul/staff_client/server/cat/copy_editor.js
+++ b/Open-ILS/xul/staff_client/server/cat/copy_editor.js
@@ -272,6 +272,7 @@ g.retrieve_templates = function() {
                 xulG.update_unified_template_list(list);
                 // functions the unified wrapper should use to let the item attribute editor do the heavy lifting for templates
                 xulG.update_item_editor_template_selection = function(new_value) {
+                    g.template_menu.setAttribute('value', new_value);
                     g.template_menu.value = new_value;
                     g.copy_editor_prefs[ 'template_menu' ] = { 'value' : g.template_menu.value };
                     g.save_attributes();
@@ -1278,7 +1279,14 @@ g.render = function() {
             } catch(E) { alert(E); }
         }
     }
-    if (g.template_menu) g.template_menu.value = g.template_menu.getAttribute('value');
+    if (g.template_menu) {
+        g.template_menu.value = g.template_menu.getAttribute('value');
+        if (xulG.unified_interface) {
+            if (typeof xulG.update_unified_template_selection == 'function') {
+                xulG.update_unified_template_selection(g.template_menu.value);
+            }
+        }
+    }
 
 }
 
diff --git a/Open-ILS/xul/staff_client/server/cat/volume_copy_editor.js b/Open-ILS/xul/staff_client/server/cat/volume_copy_editor.js
index 28f3c78..a0dc8c1 100644
--- a/Open-ILS/xul/staff_client/server/cat/volume_copy_editor.js
+++ b/Open-ILS/xul/staff_client/server/cat/volume_copy_editor.js
@@ -110,6 +110,12 @@ function setup_templates() {
             }
         };
 
+        // used for loading default template selection
+        xulG.update_unified_template_selection = function(value) {
+            g.template_menu.setAttribute('value', value);
+            g.template_menu.value = value;
+        };
+
     } catch(E) {
         alert('Error in volume_copy_editor.js, setup_templates(): ' + E);
     }

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

Summary of changes:
 .../xul/staff_client/server/cat/copy_editor.js     |   10 +++++++++-
 .../staff_client/server/cat/volume_copy_editor.js  |    6 ++++++
 2 files changed, 15 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list