lock down the interface less when using Add Items, since the UI can handle it now
authorJason Etheridge <jason@esilibrary.com>
Mon, 7 Mar 2011 10:20:36 +0000 (05:20 -0500)
committerJason Etheridge <jason@esilibrary.com>
Mon, 7 Mar 2011 10:20:36 +0000 (05:20 -0500)
Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js

index 2bbed28..b7a55ff 100644 (file)
@@ -125,9 +125,7 @@ function my_init() {
         /***********************************************************************************************************/
         /* For the call number drop down */
 
-        if (g.existing_copies.length > 0 || !g.copy_shortcut) {
-            g.list_callnumbers(g.doc_id, label_class);
-        }
+        g.list_callnumbers(g.doc_id, label_class);
 
         /***********************************************************************************************************/
         /* render the orgs and volumes/input */
@@ -188,7 +186,6 @@ g.render_volume_count_entry = function(row,ou_id) {
                 return;
             }
             if (node) { row.removeChild(node); node = null; }
-            //ev.target.disabled = true;
             node = g.render_callnumber_copy_count_entry(row,ou_id,ev.target.value);
         }
     }
@@ -347,9 +344,6 @@ g.render_callnumber_copy_count_entry = function(row,ou_id,count) {
                             }
                             call_number_column_textbox.value = label; 
                             handle_change_call_number_column_textbox({'target':call_number_column_textbox});
-                            if (g.existing_copies.length < 1) {
-                                call_number_column_textbox.disabled = true;
-                            }
                         } else {
 
                             // if we're providing defaults, keep on rendering