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