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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt (-2 / +2 lines)
Lines 139-146 Link Here
139
139
140
        <td class="actions">
140
        <td class="actions">
141
             [% UNLESS ( budget_line.budget_lock ) %]
141
             [% UNLESS ( budget_line.budget_lock ) %]
142
                    <input type="button" class="auto_fill_row" data-budget-id="[% budget_line.budget_id | html %]" value="Auto-fill row"/>
142
                    <input type="button" class="auto_fill_row btn btn-default btn-xs" data-budget-id="[% budget_line.budget_id | html %]" value="Auto-fill row"/>
143
                    <input type="button" class="clear_fields" data-budget-id="[% budget_line.budget_id | html %]" value="Clear">
143
                    <input type="button" class="clear_fields btn btn-default btn-xs" data-budget-id="[% budget_line.budget_id | html %]" value="Clear">
144
            [% ELSE %]
144
            [% ELSE %]
145
             <div style="color:red;">not owned</div>
145
             <div style="color:red;">not owned</div>
146
            [% END %]
146
            [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/acq.js (-3 / +6 lines)
Lines 364-377 function showColumn(num){ Link Here
364
}
364
}
365
365
366
function showAllColumns(){
366
function showAllColumns(){
367
    $("#selections").checkCheckboxes();
367
    $("#selections").find("input:checkbox").each(function () {
368
        $(this).prop("checked", true);
369
    });
368
    $("#selections span").addClass("selected");
370
    $("#selections span").addClass("selected");
369
    $("#plan td:nth-child(2),#plan tr th:nth-child(2)").nextAll().show();
371
    $("#plan td:nth-child(2),#plan tr th:nth-child(2)").nextAll().show();
370
    $("#hideall").prop("checked", false).parent().removeClass("selected");
372
    $("#hideall").prop("checked", false).parent().removeClass("selected");
371
}
373
}
372
function hideAllColumns(){
374
function hideAllColumns(){
373
    var allCols = $("#plan th").length;
375
    var allCols = $("#plan th").length;
374
    $("#selections").unCheckCheckboxes();
376
    $("#selections").find("input:checkbox").each(function () {
377
        $(this).prop("checked", false);
378
    });
375
    $("#selections span").removeClass("selected");
379
    $("#selections span").removeClass("selected");
376
    $("#plan td:nth-child(2),#plan th:nth-child(2)").nextUntil("th:nth-child("+(allCols-1)+"),td:nth-child("+(allCols-1)+")").hide(); // hide all but the last two columns
380
    $("#plan td:nth-child(2),#plan th:nth-child(2)").nextUntil("th:nth-child("+(allCols-1)+"),td:nth-child("+(allCols-1)+")").hide(); // hide all but the last two columns
377
    $("#hideall").prop("checked", true).parent().addClass("selected");
381
    $("#hideall").prop("checked", true).parent().addClass("selected");
378
- 

Return to bug 26497