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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/list.tt (-13 / +15 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 93-107 Link Here
93
    <script type="text/javascript">
98
    <script type="text/javascript">
94
        $(document).ready(function() {
99
        $(document).ready(function() {
95
100
96
        $("span.clearall").html("<a id=\"CheckNone\" href=\"/cgi-bin/koha/offline_circ/list.pl\">"+_("Uncheck all")+"<\/a>");
101
            $('#CheckNone').click(function(e) {
97
        $("span.checkall").html("<a id=\"CheckAll\" href=\"/cgi-bin/koha/offline_circ/list.pl\">"+_("Check all")+"<\/a>");
102
                e.preventDefault();
98
            $('#CheckNone').click(function() {
103
                $("#operations input:checkbox").prop("checked", false );
99
                $("#operations").unCheckCheckboxes();
100
                return false;
101
            });
104
            });
102
            $('#CheckAll').click(function() {
105
            $('#CheckAll').click(function(e) {
103
                $("#operations").checkCheckboxes();
106
                e.preventDefault();
104
                return false;
107
                $("#operations input:checkbox").prop("checked", true );
105
            });
108
            });
106
            $('#process,#delete').click(function() {
109
            $('#process,#delete').click(function() {
107
                var action = $(this).attr("id");
110
                var action = $(this).attr("id");
108
- 

Return to bug 26212