| 
      
            Lines 18-35
          
      
      
        Link Here
      
     | 
  
        
          | 18 | 
                      };  | 
          18 | 
                      };  | 
        
        
          | 19 | 
                      function Remove() { | 
          19 | 
                      function Remove() { | 
        
        
          | 20 | 
                          items = new Array;  | 
          20 | 
                          items = new Array;  | 
        
            
              | 21 | 
                              item_num = new Array;  | 
               | 
               | 
            
        
          | 22 | 
           | 
          21 | 
           | 
        
        
          | 23 | 
                          if(document.items.action.length > 0) { | 
          22 | 
                          if(document.items.action.length > 0) { | 
        
        
          | 24 | 
                              for (var i=0; i < document.items.action.length; i++) { | 
          23 | 
                              for (var i=0; i < document.items.action.length; i++) { | 
        
        
          | 25 | 
                                  if (document.items.action[i].checked) { | 
          24 | 
                                  if (document.items.action[i].checked) { | 
        
        
          | 26 | 
                                      items.push("label_id=" +  document.items.action[i].value); | 
          25 | 
                                      items.push("label_id=" +  document.items.action[i].value); | 
        
            
              | 27 | 
                                          item_num.push(i+1);  | 
               | 
               | 
            
        
          | 28 | 
                                  }  | 
          26 | 
                                  }  | 
        
        
          | 29 | 
                              }  | 
          27 | 
                              }  | 
        
        
          | 30 | 
                              getstr = items.join("&"); | 
          28 | 
                              getstr = items.join("&"); | 
        
          
            
              | 31 | 
                                  item_msg = item_num.join(", "); | 
              29 | 
                                  var msg = _("Are you sure you want to remove the selected patron(s) from this batch?"); | 
            
            
              | 32 | 
                                  var msg = _("Are you sure you want to remove card number(s): %s from this batch?").format(item_msg); | 
               | 
               | 
            
        
          | 33 | 
                          } else if (document.items.action.checked) { | 
          30 | 
                          } else if (document.items.action.checked) { | 
        
        
          | 34 | 
                              alert(_("Deletion of patron from a batch with only one patron will delete the batch.") + "\n\n" + _("If this is what you want, select the 'Delete batch' option from the toolbar")); | 
          31 | 
                              alert(_("Deletion of patron from a batch with only one patron will delete the batch.") + "\n\n" + _("If this is what you want, select the 'Delete batch' option from the toolbar")); | 
        
        
          | 35 | 
                              return; // no deletion for single item batch  | 
          32 | 
                              return; // no deletion for single item batch  | 
        
            
              | 36 | 
              -   | 
               | 
               |