wrong event, some debug aids, and toward setting class, prefix and suffix menus when...
authorJason Etheridge <jason@esilibrary.com>
Tue, 8 Mar 2011 18:03:46 +0000 (13:03 -0500)
committerJason Etheridge <jason@esilibrary.com>
Tue, 8 Mar 2011 18:03:46 +0000 (13:03 -0500)
Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js

index ff59989..3a550de 100644 (file)
@@ -346,19 +346,19 @@ g.render_callnumber_copy_count_entry = function(row,ou_id,count) {
 
                     /**** CLASSIFICATION COLUMN revisited ****/
                     var classification_column_menulist = g.render_class_menu(call_number_column_textbox);
-                    classification_column_menulist.addEventListener( 'change', g.gather_copies_soon, false);
+                    classification_column_menulist.addEventListener( 'command', g.gather_copies_soon, false);
                     classification_column_box.appendChild(classification_column_menulist);
 
                     /**** PREFIX COLUMN revisited ****/
                     var prefix_column_menulist = g.render_prefix_menu(call_number_column_textbox);
-                    prefix_column_menulist.addEventListener( 'change', g.gather_copies_soon, false);
+                    prefix_column_menulist.addEventListener( 'command', g.gather_copies_soon, false);
                     prefix_column_box.appendChild(prefix_column_menulist);
 
             /**** SUFFIX COLUMN ****/
             var suffix_column_box = document.createElement('vbox');
             r.appendChild(suffix_column_box);
                 var suffix_column_menulist = g.render_suffix_menu(call_number_column_textbox);
-                suffix_column_menulist.addEventListener( 'change', g.gather_copies_soon, false);
+                suffix_column_menulist.addEventListener( 'command', g.gather_copies_soon, false);
                 suffix_column_box.appendChild(suffix_column_menulist);
 
             /**** NUMBER OF COPIES COLUMN ****/
@@ -687,6 +687,7 @@ g.gather_copies = function() {
                 if (typeof volumes_hash[ou_id][callnumber] == 'undefined') {
                     volumes_hash[ou_id][callnumber] = {
                         'call_number_data' : {
+                            'node' : nl[i],
                             'acnc_id' : acnc_id,
                             'acnp_id' : acnp_id,
                             'acns_id' : acns_id
@@ -705,9 +706,11 @@ g.gather_copies = function() {
             var bmp_id = barcodes[i].getAttribute('bmp_id');
 
             if (typeof volumes_hash[ou_id] == 'undefined') {
+                alert('1: I want to remove this soon, so alert me if it is getting used');
                 volumes_hash[ou_id] = {}
             }
             if (typeof volumes_hash[ou_id][callnumber] == 'undefined') {
+                alert('2: I want to remove this soon, so alert me if it is getting used');
                 volumes_hash[ou_id][callnumber] = {
                     'call_number_data' : {},
                     'barcode_data' : []