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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt (-1 lines)
Lines 288-294 Link Here
288
    [% Asset.js("js/tools-menu.js") | $raw %]
288
    [% Asset.js("js/tools-menu.js") | $raw %]
289
    [% INCLUDE 'datatables.inc' %]
289
    [% INCLUDE 'datatables.inc' %]
290
    [% Asset.js("js/pages/batchMod.js") | $raw %]
290
    [% Asset.js("js/pages/batchMod.js") | $raw %]
291
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
292
    <script type="text/javascript">
291
    <script type="text/javascript">
293
        // Prepare array of all column headers, incrementing each index by
292
        // Prepare array of all column headers, incrementing each index by
294
        // two to accommodate control and title columns
293
        // two to accommodate control and title columns
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt (-1 lines)
Lines 8-14 Link Here
8
[% Asset.js("js/background-job-progressbar.js") | $raw %]
8
[% Asset.js("js/background-job-progressbar.js") | $raw %]
9
[% Asset.js("js/cataloging.js") | $raw %]
9
[% Asset.js("js/cataloging.js") | $raw %]
10
[% INCLUDE 'datatables.inc' %]
10
[% INCLUDE 'datatables.inc' %]
11
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
12
[% Asset.js("js/pages/batchMod.js") | $raw %]
11
[% Asset.js("js/pages/batchMod.js") | $raw %]
13
<script type="text/javascript">
12
<script type="text/javascript">
14
//<![CDATA[
13
//<![CDATA[
(-)a/koha-tmpl/intranet-tmpl/prog/js/pages/batchMod.js (-9 / +16 lines)
Lines 80-93 function showColumn(num){ Link Here
80
  }
80
  }
81
}
81
}
82
function showAllColumns(){
82
function showAllColumns(){
83
    $("#selections").checkCheckboxes();
83
    $("#selections input:checkbox").each(function(){
84
        $(this).prop("checked", true);
85
    });
84
    $("#selections span").addClass("selected");
86
    $("#selections span").addClass("selected");
85
    $("#itemst td:nth-child(3),#itemst tr th:nth-child(3)").nextAll().show();
87
    $("#itemst td:nth-child(3),#itemst tr th:nth-child(3)").nextAll().show();
86
    $.removeCookie("showColumns", { path: '/' });
88
    $.removeCookie("showColumns", { path: '/' });
87
    $("#hideall").prop("checked", false).parent().removeClass("selected");
89
    $("#hideall").prop("checked", false).parent().removeClass("selected");
88
}
90
}
89
function hideAllColumns(){
91
function hideAllColumns(){
90
    $("#selections").unCheckCheckboxes();
92
    $("#selections input:checkbox").each(function(){
93
        $(this).prop("checked", false);
94
    });
91
    $("#selections span").removeClass("selected");
95
    $("#selections span").removeClass("selected");
92
    $("#itemst td:nth-child(3),#itemst th:nth-child(3)").nextAll().hide();
96
    $("#itemst td:nth-child(3),#itemst th:nth-child(3)").nextAll().hide();
93
    $("#hideall").prop("checked", true).parent().addClass("selected");
97
    $("#hideall").prop("checked", true).parent().addClass("selected");
Lines 105-117 function hideAllColumns(){ Link Here
105
        ],
109
        ],
106
        "bPaginate": false,
110
        "bPaginate": false,
107
    }));
111
    }));
108
    $("#selectallbutton").click(function(){
112
    $("#selectallbutton").click(function(e){
109
      $("#itemst").checkCheckboxes();
113
        e.preventDefault();
110
      return false;
114
        $("#itemst input:checkbox").each(function(){
115
            $(this).prop("checked", true);
116
        });
111
    });
117
    });
112
    $("#clearallbutton").click(function(){
118
    $("#clearallbutton").click(function(e){
113
      $("#itemst").unCheckCheckboxes();
119
        e.preventDefault();
114
      return false;
120
        $("#itemst input:checkbox").each(function(){
121
            $(this).prop("checked", false);
122
        });
115
    });
123
    });
116
    $("#clearonloanbutton").click(function(){
124
    $("#clearonloanbutton").click(function(){
117
      $("#itemst input[name='itemnumber'][data-is-onloan='1']").each(function(){
125
      $("#itemst input[name='itemnumber'][data-is-onloan='1']").each(function(){
118
- 

Return to bug 26154