|
Lines 345-353
Link Here
|
| 345 |
function deleteIssues(subscriptionid) { |
345 |
function deleteIssues(subscriptionid) { |
| 346 |
var serialschecked = $("form[name='edition'] input[name='serialid']:checked"); |
346 |
var serialschecked = $("form[name='edition'] input[name='serialid']:checked"); |
| 347 |
if (serialschecked.length > 0) { |
347 |
if (serialschecked.length > 0) { |
| 348 |
var location = 'serials-collection.pl?subscriptionid='+subscriptionid+'&op=delete_confirm'; |
348 |
var location = "serials-collection.pl?subscriptionid=" + subscriptionid + "&op=delete_confirm"; |
| 349 |
for (i=0; i < serialschecked.length; i++) { |
349 |
for (i = 0; i < serialschecked.length; i++) { |
| 350 |
location += '&serialid=' + serialschecked[i].value; |
350 |
location += "&serialid=" + serialschecked[i].value; |
| 351 |
} |
351 |
} |
| 352 |
document.location = location; |
352 |
document.location = location; |
| 353 |
} else { |
353 |
} else { |
|
Lines 355-362
Link Here
|
| 355 |
} |
355 |
} |
| 356 |
} |
356 |
} |
| 357 |
|
357 |
|
| 358 |
$(document).ready(function() { |
358 |
$(document).ready(function () { |
| 359 |
if( $("#subscription_years .tab-pane.active").length < 1 ){ |
359 |
if ($("#subscription_years .tab-pane.active").length < 1) { |
| 360 |
$("#subscription_years a:first").tab("show"); |
360 |
$("#subscription_years a:first").tab("show"); |
| 361 |
} |
361 |
} |
| 362 |
$(".subscription-year-table").kohaTable({ |
362 |
$(".subscription-year-table").kohaTable({ |
|
Lines 368-409
Link Here
|
| 368 |
searching: false, |
368 |
searching: false, |
| 369 |
}); |
369 |
}); |
| 370 |
|
370 |
|
| 371 |
$(".CheckAll").on("click", function(e){ |
371 |
$(".CheckAll").on("click", function (e) { |
| 372 |
e.preventDefault(); |
372 |
e.preventDefault(); |
| 373 |
var years = $(this).data("year"); |
373 |
var years = $(this).data("year"); |
| 374 |
$("#subscription-year-" + years + "_panel" + " input:checkbox").prop("checked", true ); |
374 |
$("#subscription-year-" + years + "_panel" + " input:checkbox").prop("checked", true); |
| 375 |
}); |
375 |
}); |
| 376 |
|
376 |
|
| 377 |
$(".CheckNone").on("click", function(e){ |
377 |
$(".CheckNone").on("click", function (e) { |
| 378 |
e.preventDefault(); |
378 |
e.preventDefault(); |
| 379 |
var years = $(this).data("year"); |
379 |
var years = $(this).data("year"); |
| 380 |
$("#subscription-year-" + years + "_panel" + " input:checkbox").prop("checked", false ); |
380 |
$("#subscription-year-" + years + "_panel" + " input:checkbox").prop("checked", false); |
| 381 |
}); |
381 |
}); |
| 382 |
|
382 |
|
| 383 |
$(".generatenext").on("click", function(e){ |
383 |
$(".generatenext").on("click", function (e) { |
| 384 |
e.preventDefault(); |
384 |
e.preventDefault(); |
| 385 |
var subscriptionid = $(this).data("subscriptionid"); |
385 |
var subscriptionid = $(this).data("subscriptionid"); |
| 386 |
generateNext( subscriptionid ); |
386 |
generateNext(subscriptionid); |
| 387 |
}); |
387 |
}); |
| 388 |
|
388 |
|
| 389 |
$(".subscription_renew").on("click", function(e){ |
389 |
$(".subscription_renew").on("click", function (e) { |
| 390 |
e.preventDefault(); |
390 |
e.preventDefault(); |
| 391 |
var subscriptionid = $(this).data("subscriptionid"); |
391 |
var subscriptionid = $(this).data("subscriptionid"); |
| 392 |
popup( subscriptionid ); |
392 |
popup(subscriptionid); |
| 393 |
}); |
393 |
}); |
| 394 |
|
394 |
|
| 395 |
$(".print_list").on("click", function(e){ |
395 |
$(".print_list").on("click", function (e) { |
| 396 |
e.preventDefault(); |
396 |
e.preventDefault(); |
| 397 |
var url = $(this).attr("href"); |
397 |
var url = $(this).attr("href"); |
| 398 |
window.open( url,'PrintSlip','width=500,height=500,toolbar=no,scrollbars=yes'); |
398 |
window.open(url, "PrintSlip", "width=500,height=500,toolbar=no,scrollbars=yes"); |
| 399 |
}); |
399 |
}); |
| 400 |
|
400 |
|
| 401 |
$('#multi_receiving').on('show', function () { |
401 |
$("#multi_receiving").on("show", function () { |
| 402 |
$(this).find(".modal-body").html($(".serials_multi_receiving")[0].outerHTML); |
402 |
$(this).find(".modal-body").html($(".serials_multi_receiving")[0].outerHTML); |
| 403 |
}); |
403 |
}); |
| 404 |
|
404 |
|
| 405 |
$("form[name='edition']").on('submit', function(e){ |
405 |
$("form[name='edition']").on("submit", function (e) { |
| 406 |
if ( $(this).find("input[name='serialid']:checked").size() == 0 ) { |
406 |
if ($(this).find("input[name='serialid']:checked").size() == 0) { |
| 407 |
e.preventDefault(); |
407 |
e.preventDefault(); |
| 408 |
alert(_("You must select at least one serial to edit")); |
408 |
alert(_("You must select at least one serial to edit")); |
| 409 |
return 0; |
409 |
return 0; |
|
Lines 412-418
Link Here
|
| 412 |
}); |
412 |
}); |
| 413 |
}); |
413 |
}); |
| 414 |
</script> |
414 |
</script> |
| 415 |
|
|
|
| 416 |
<script> |
415 |
<script> |
| 417 |
$(document).ready(function() { |
416 |
$(document).ready(function() { |
| 418 |
$(".delete-issues").on("click", function(e){ |
417 |
$(".delete-issues").on("click", function(e){ |