[open-ils-commits] [GIT] Evergreen ILS branch rel_2_1 updated. b7eebefcf24ed9b4f85b1088410f1ec120a66163

Evergreen Git git at git.evergreen-ils.org
Tue Mar 20 16:52:21 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, rel_2_1 has been updated
       via  b7eebefcf24ed9b4f85b1088410f1ec120a66163 (commit)
      from  e25b067cac5f47d1b1ada9eee114d915287fa2dc (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 b7eebefcf24ed9b4f85b1088410f1ec120a66163
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 3bc1891..8f7f35d 100644
--- a/Open-ILS/xul/staff_client/server/cat/copy_editor.js
+++ b/Open-ILS/xul/staff_client/server/cat/copy_editor.js
@@ -263,6 +263,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();
@@ -1263,7 +1264,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