|
Lines 355-372
Link Here
|
| 355 |
}); |
355 |
}); |
| 356 |
$(".export").on("click", function (e) { |
356 |
$(".export").on("click", function (e) { |
| 357 |
e.preventDefault(); |
357 |
e.preventDefault(); |
| 358 |
var label_id = $(this).data("label-id"); |
358 |
var export_label_id = $(this).data("label-id"); |
| 359 |
var batch_id = $(this).data("batch-id"); |
359 |
var export_batch_id = $(this).data("batch-id"); |
| 360 |
location.href = "/cgi-bin/koha/patroncards/print.pl?batch_id=" + batch_id + "&label_id=" + label_id; |
360 |
location.href = "/cgi-bin/koha/patroncards/print.pl?batch_id=" + export_batch_id + "&label_id=" + export_label_id; |
| 361 |
}); |
361 |
}); |
| 362 |
|
362 |
|
| 363 |
$("#savedesc").click(function (event) { |
363 |
$("#savedesc").click(function (event) { |
| 364 |
event.preventDefault(); // prevent form submission |
364 |
event.preventDefault(); // prevent form submission |
| 365 |
var newdescription = $('input[name="description"]').val(); |
365 |
var newdescription = $('input[name="description"]').val(); |
| 366 |
var batch_id = $(this).data("batch_id"); |
366 |
var save_batch_id = $(this).data("batch_id"); |
| 367 |
var ajaxData = { |
367 |
var ajaxData = { |
| 368 |
newdescription: newdescription, |
368 |
newdescription: newdescription, |
| 369 |
batch_id: batch_id, |
369 |
batch_id: save_batch_id, |
| 370 |
op: "cud-set_permission", |
370 |
op: "cud-set_permission", |
| 371 |
csrf_token: $('meta[name="csrf-token"]').attr("content"), |
371 |
csrf_token: $('meta[name="csrf-token"]').attr("content"), |
| 372 |
}; |
372 |
}; |
| 373 |
- |
|
|