Lines 118-123
function hideAllColumns() {
Link Here
|
118 |
} |
118 |
} |
119 |
|
119 |
|
120 |
$(document).ready(function () { |
120 |
$(document).ready(function () { |
|
|
121 |
$('form[action="batchMod.pl"]').on("submit", function (e) { |
122 |
var replacementprice = $("input[name='items.replacementprice']").val(); |
123 |
if (!/^[0-9.]+$/.test(replacementprice)) { |
124 |
e.preventDefault(); |
125 |
return false; |
126 |
} |
127 |
return true; |
128 |
}); |
129 |
|
130 |
$("input[name='items.replacementprice']").on("input", function () { |
131 |
var value = $(this).val(); |
132 |
var isValid = /^[0-9.]*$/.test(value); |
133 |
|
134 |
if (!isValid) { |
135 |
$('.replacementprice_error_message').removeClass('hidden'); |
136 |
} else { |
137 |
$('.replacementprice_error_message').addClass('hidden'); |
138 |
} |
139 |
}); |
140 |
|
121 |
var items_table = KohaTable("itemst", { |
141 |
var items_table = KohaTable("itemst", { |
122 |
"columnDefs": [ |
142 |
"columnDefs": [ |
123 |
{ "targets": [0, 1], "orderable": false, "searchable": true }, |
143 |
{ "targets": [0, 1], "orderable": false, "searchable": true }, |
124 |
- |
|
|