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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt (-2 / +9 lines)
Lines 282-292 Link Here
282
          enableCheckboxActions();
282
          enableCheckboxActions();
283
        });
283
        });
284
        $("#removeitems").html("<a href=\"#\" class=\"removeitems tag_hides disabled\">"+_("Delete")+"</a>")
284
        $("#removeitems").html("<a href=\"#\" class=\"removeitems tag_hides disabled\">"+_("Delete")+"</a>")
285
        .click(function(){
285
        .click(function(e){
286
          e.preventDefault();
286
          $("#myform").submit();
287
          $("#myform").submit();
287
          return false;
288
          return false;
288
        });
289
        });
289
        enableCheckboxActions();
290
        enableCheckboxActions();
291
        $("#myform").on('submit', function() {
292
          if ( $("input:checked").size() < 1 ) {
293
            alert(MSG_NO_RECORD_SELECTED);
294
            return false;
295
          }
296
          return true;
297
        });
290
        [% END %]
298
        [% END %]
291
    });
299
    });
292
300
293
- 

Return to bug 11127