Lines 65-87
$(document).ready(function() {
Link Here
|
65 |
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] }, |
65 |
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] }, |
66 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] } |
66 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] } |
67 |
], |
67 |
], |
68 |
"aaSorting": [[ 4, "desc" ]], |
68 |
"aaSorting": [[ 2, "desc" ]], |
69 |
"sPaginationType": "full" |
69 |
"sPaginationType": "full" |
70 |
})); |
70 |
})); |
71 |
$('.ajax_buttons' ).css({visibility:"visible"}); |
71 |
$('.ajax_buttons' ).css({visibility:"visible"}); |
72 |
$("p.check").html("<div id=\"searchheader\"><a id=\"CheckAll\" href=\"/cgi-bin/koha/tags/review.pl\"><i class=\"fa fa-check\" aria-hidden=\"false\"><\/i> " + __("Select all") + "<\/a> | <a id=\"CheckNone\" href=\"/cgi-bin/koha/tags/review.pl\"><i class=\"fa fa-remove\" aria-hidden=\"false\"><\/i> " + __("Clear all") + "<\/a> | <a id=\"CheckPending\" href=\"/cgi-bin/koha/tags/review.pl\"> " + __("Select all pending") + "<\/a><\/div>"); |
72 |
$("p.check").html("<div id=\"searchheader\"><a id=\"CheckAll\" href=\"/cgi-bin/koha/tags/review.pl\"><i class=\"fa fa-check\" aria-hidden=\"false\"><\/i> " + __("Select all") + "<\/a> | <a id=\"CheckNone\" href=\"/cgi-bin/koha/tags/review.pl\"><i class=\"fa fa-remove\" aria-hidden=\"false\"><\/i> " + __("Clear all") + "<\/a> | <a id=\"CheckPending\" href=\"/cgi-bin/koha/tags/review.pl\"> " + __("Select all pending") + "<\/a><\/div>"); |
73 |
$("#CheckAll").click(function(){ |
73 |
|
74 |
$(".checkboxed").checkCheckboxes(); |
74 |
$("#CheckAll").on("click", function (e) { |
75 |
return false; |
75 |
e.preventDefault(); |
|
|
76 |
$("#tagst input:checkbox").each(function () { |
77 |
$(this).prop("checked", true); |
78 |
}); |
76 |
}); |
79 |
}); |
77 |
$("#CheckNone").click(function(){ |
80 |
|
78 |
$(".checkboxed").unCheckCheckboxes(); |
81 |
$("#CheckNone").on("click", function(e){ |
79 |
return false; |
82 |
e.preventDefault(); |
|
|
83 |
$("#tagst input:checkbox").each(function(){ |
84 |
$(this).prop("checked", false ); |
85 |
}); |
80 |
}); |
86 |
}); |
81 |
$("#CheckPending").click(function(){ |
87 |
|
82 |
$(".checkboxed").checkCheckboxes(".pending"); |
88 |
$("#CheckPending").on("click", function (e) { |
83 |
return false; |
89 |
e.preventDefault(); |
|
|
90 |
$("#tagst input:checkbox").each(function () { |
91 |
if( $(this).hasClass("pending") ){ |
92 |
$(this).prop("checked", true); |
93 |
} else { |
94 |
$(this).prop("checked", false); |
95 |
} |
96 |
}); |
84 |
}); |
97 |
}); |
|
|
98 |
|
85 |
$(".approval_btn").on('click',function(event) { |
99 |
$(".approval_btn").on('click',function(event) { |
86 |
event.preventDefault(); |
100 |
event.preventDefault(); |
87 |
pull_counts(); |
101 |
pull_counts(); |
Lines 102-107
$(document).ready(function() {
Link Here
|
102 |
getelement = $(event.target).data("num"); |
116 |
getelement = $(event.target).data("num"); |
103 |
gettitle = ".status" + getelement; |
117 |
gettitle = ".status" + getelement; |
104 |
$(gettitle).text( __("Approved") ); |
118 |
$(gettitle).text( __("Approved") ); |
|
|
119 |
$("#checkbox" + getelement ).attr("class", "approved"); |
105 |
if ($(gettitle).hasClass("pending") ){ |
120 |
if ($(gettitle).hasClass("pending") ){ |
106 |
$(gettitle).toggleClass("pending approved"); |
121 |
$(gettitle).toggleClass("pending approved"); |
107 |
} else { |
122 |
} else { |
Lines 121-127
$(document).ready(function() {
Link Here
|
121 |
$(event.target).html("<i class='fa fa-remove' aria-hidden='false'></i> " + __("Rejected")); |
136 |
$(event.target).html("<i class='fa fa-remove' aria-hidden='false'></i> " + __("Rejected")); |
122 |
getelement = $(event.target).data("num"); |
137 |
getelement = $(event.target).data("num"); |
123 |
gettitle = ".status" + getelement; |
138 |
gettitle = ".status" + getelement; |
124 |
$(gettitle).text( __("Rejected") ); |
139 |
$(gettitle).text(__("Rejected")); |
|
|
140 |
$("#checkbox" + getelement).attr("class", "rejected"); |
125 |
if ($(gettitle).hasClass("pending") ){ |
141 |
if ($(gettitle).hasClass("pending") ){ |
126 |
$(gettitle).toggleClass("pending rejected"); |
142 |
$(gettitle).toggleClass("pending rejected"); |
127 |
} else { |
143 |
} else { |
128 |
- |
|
|