View | Details | Raw Unified | Return to bug 11395
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt (-5 / +8 lines)
Lines 41-51 $(document).ready(function() { Link Here
41
  }));
41
  }));
42
42
43
  $("#mainformsubmit").click(function(){
43
  $("#mainformsubmit").click(function(){
44
    if ( $("#marc_modification_template_id").val() > 0 ) {
44
    if ($("input[type=checkbox][name='record_id']:checked").length == 0 ) {
45
      return submitBackgroundJob(document.getElementById("process"));
45
      alert(_("Please select at least one record to process"));
46
      return false;
46
    }
47
    }
47
    alert(_("Please select a modification template."));
48
    if ( $("#marc_modification_template_id").val() <= 0 ) {
48
    return false;
49
      alert(_("Please select a modification template."));
50
      return false;
51
    }
52
    return submitBackgroundJob(document.getElementById("process"));
49
  });
53
  });
50
54
51
  $("#marc_modification_template_id").change(function(){
55
  $("#marc_modification_template_id").change(function(){
52
- 

Return to bug 11395