From 11908662b2a67dd4dac03d715e2fb97a48adfe64 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Fri, 3 Jun 2011 15:58:52 -0400 Subject: [PATCH] tweak function name Signed-off-by: Jason Etheridge --- Open-ILS/xul/staff_client/server/cat/copy_editor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 44bfaaa625..0ce4db1bdb 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_editor.js +++ b/Open-ILS/xul/staff_client/server/cat/copy_editor.js @@ -168,7 +168,7 @@ function my_init() { try { g.copies = xulG.copies; g.original_copies = js2JSON( g.copies ); - g.show_copy_notes_button(); + g.hide_copy_notes_button(); for (var i = 0; i < g.applied_templates.length; i++) { g._apply_template( g.applied_templates[i], false); } @@ -186,7 +186,7 @@ function my_init() { g.changed[ 'volume_copy_creator.'+id ] = { 'type' : 'volume_copy_creator', 'field' : id, 'value' : v }; } } else { - g.show_copy_notes_button(); + g.hide_copy_notes_button(); } } catch(E) { @@ -198,7 +198,7 @@ function my_init() { /******************************************************************************************************/ /* Show copy notes button */ -g.show_copy_notes_button = function() { +g.hide_copy_notes_button = function() { if (g.copies.length > 0 && g.copies[0].id() < 0) { document.getElementById('copy_notes').setAttribute('hidden','true'); $('save').setAttribute('label', $('catStrings').getString('staff.cat.copy_editor.create_copies')); -- 2.11.0