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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt (-4 / +7 lines)
Lines 263-268 Link Here
263
263
264
[% MACRO jsinclude BLOCK %]
264
[% MACRO jsinclude BLOCK %]
265
    [% INCLUDE 'datatables.inc' %]
265
    [% INCLUDE 'datatables.inc' %]
266
    <script>
267
        const record_type = "[% recordtype | html %]";
268
    </script>
269
266
    <script>
270
    <script>
267
        var MSG_CANNOT_BE_DELETED = _("This record cannot be deleted, at least one item is currently checked out.");
271
        var MSG_CANNOT_BE_DELETED = _("This record cannot be deleted, at least one item is currently checked out.");
268
        $(document).ready(function() {
272
        $(document).ready(function() {
Lines 337-350 Link Here
337
341
338
          $("#selectall").click();
342
          $("#selectall").click();
339
343
340
          //Show a red cross if a biblio cannot be deleted
344
          // Show a red cross if a biblio cannot be deleted
341
          [% IF recordtype == 'biblio' %]
345
          if (recordtype == 'biblio'){
342
            $(".records input:checkbox[data-issues!='0']").each(function(){
346
            $(".records input:checkbox[data-issues!='0']").each(function(){
343
              $(this).parents('tr').find('td').css('background-color', '#ffff99')
347
              $(this).parents('tr').find('td').css('background-color', '#ffff99')
344
              $(this).replaceWith("<span class='error'><i class='fa fa-times fa-lg'></i></span>")
348
              $(this).replaceWith("<span class='error'><i class='fa fa-times fa-lg'></i></span>")
345
              $(".records i").attr('title', MSG_CANNOT_BE_DELETED)
349
              $(".records i").attr('title', MSG_CANNOT_BE_DELETED)
346
            });
350
            });
347
          [% END %]
351
          }
348
352
349
          $("#biblios").kohaTable({
353
          $("#biblios").kohaTable({
350
              columnDefs: [
354
              columnDefs: [
351
- 

Return to bug 41580