Lines 265-270
Link Here
|
265 |
}); |
265 |
}); |
266 |
|
266 |
|
267 |
$("#value_selector").on('change', function() { |
267 |
$("#value_selector").on('change', function() { |
|
|
268 |
const val = $('#value_selector').val(); |
269 |
window.history.replaceState(null, "", `/cgi-bin/koha/admin/transfer_limits.pl?code=${val}`); |
268 |
updateTransferLimitsTable(); |
270 |
updateTransferLimitsTable(); |
269 |
}); |
271 |
}); |
270 |
|
272 |
|
Lines 285-290
Link Here
|
285 |
}); |
287 |
}); |
286 |
|
288 |
|
287 |
updateTransferLimitsTable(); |
289 |
updateTransferLimitsTable(); |
|
|
290 |
|
291 |
const queryString = window.location.search; |
292 |
const urlParams = new URLSearchParams(queryString); |
293 |
const code = urlParams.get('code'); |
294 |
if ( code ) { |
295 |
$('#value_selector').val(code); |
296 |
updateTransferLimitsTable(); |
297 |
} |
288 |
}); |
298 |
}); |
289 |
|
299 |
|
290 |
function delLimit(checkbox) { |
300 |
function delLimit(checkbox) { |
291 |
- |
|
|