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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/list.tt (-15 / +16 lines)
Lines 21-28 Link Here
21
	    [% IF ( pending_operations ) %]
21
	    [% IF ( pending_operations ) %]
22
22
23
	        <form>
23
	        <form>
24
             <p><span class="checkall"></span> |
24
                <p>
25
             <span class="clearall"></span></p>
25
                    <a id="CheckAll" href="#"><i class="fa fa-check"></i> Check all</a>
26
                    <a id="CheckNone" href="#"><i class="fa fa-remove"></i> Uncheck all</a>
27
                </p>
28
26
	        <table id="operations">
29
	        <table id="operations">
27
	            <thead>
30
	            <thead>
28
		            <tr>
31
		            <tr>
Lines 37-44 Link Here
37
		        <tbody>
40
		        <tbody>
38
		            [% FOREACH operation IN pending_operations %]
41
		            [% FOREACH operation IN pending_operations %]
39
		                <tr class="oc-[% operation.action | html %]">
42
		                <tr class="oc-[% operation.action | html %]">
40
		                    <td><input type="checkbox" name="operationid" value="[% operation.operationid | html %]" /></td>
43
                            <td><input type="checkbox" name="operationid" id="operationid[% operation.operationid | html %]" value="[% operation.operationid | html %]" /></td>
41
			                <td>[% operation.timestamp | html %]</td>
44
                            <td>
45
                                <label for="operationid[% operation.operationid | html %]">[% operation.timestamp | html %]</label>
46
                            </td>
42
                            <td>
47
                            <td>
43
                                [% SWITCH ( operation.action ) -%]
48
                                [% SWITCH ( operation.action ) -%]
44
                                    [%   CASE "issue" -%]
49
                                    [%   CASE "issue" -%]
Lines 89-107 Link Here
89
</div>
94
</div>
90
95
91
[% MACRO jsinclude BLOCK %]
96
[% MACRO jsinclude BLOCK %]
92
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
97
    <script>
93
    <script type="text/javascript">
94
        $(document).ready(function() {
98
        $(document).ready(function() {
95
99
96
        $("span.clearall").html("<a id=\"CheckNone\" href=\"/cgi-bin/koha/offline_circ/list.pl\">"+_("Uncheck all")+"<\/a>");
100
            $('#CheckNone').click(function(e) {
97
        $("span.checkall").html("<a id=\"CheckAll\" href=\"/cgi-bin/koha/offline_circ/list.pl\">"+_("Check all")+"<\/a>");
101
                e.preventDefault();
98
            $('#CheckNone').click(function() {
102
                $("#operations input:checkbox").prop("checked", false );
99
                $("#operations").unCheckCheckboxes();
100
                return false;
101
            });
103
            });
102
            $('#CheckAll').click(function() {
104
            $('#CheckAll').click(function(e) {
103
                $("#operations").checkCheckboxes();
105
                e.preventDefault();
104
                return false;
106
                $("#operations input:checkbox").prop("checked", true );
105
            });
107
            });
106
            $('#process,#delete').click(function() {
108
            $('#process,#delete').click(function() {
107
                var action = $(this).attr("id");
109
                var action = $(this).attr("id");
108
- 

Return to bug 26212