Lines 750-756
Link Here
|
750 |
e.preventDefault(); |
750 |
e.preventDefault(); |
751 |
var hold_title = $(this).data("title"); |
751 |
var hold_title = $(this).data("title"); |
752 |
var reserve_id = $(this).data("reserve_id"); |
752 |
var reserve_id = $(this).data("reserve_id"); |
753 |
var body = "<p><strong>" + hold_title + "</strong></p>"; |
|
|
754 |
confirmModal( hold_title, _("Are you sure you want to cancel this hold?"), _("Yes, cancel hold"), _("No, do not cancel hold"), function( result ){ |
753 |
confirmModal( hold_title, _("Are you sure you want to cancel this hold?"), _("Yes, cancel hold"), _("No, do not cancel hold"), function( result ){ |
755 |
if( result ){ |
754 |
if( result ){ |
756 |
$("#delete_hold_" + reserve_id ).submit(); |
755 |
$("#delete_hold_" + reserve_id ).submit(); |
Lines 761-770
Link Here
|
761 |
|
760 |
|
762 |
$(".btn-delete-article-request").on("click", function(e){ |
761 |
$(".btn-delete-article-request").on("click", function(e){ |
763 |
e.preventDefault(); |
762 |
e.preventDefault(); |
764 |
var hold_title = $(this).data("title"); |
763 |
var article_request = $(this).data("title"); |
765 |
var article_request_id = $(this).data("article-request_id"); |
764 |
var article_request_id = $(this).data("article-request_id"); |
766 |
var body = "<p><strong>" + hold_title + "</strong></p>"; |
765 |
confirmModal( article_request, _("Are you sure you want to cancel this article request?"), _("Yes, cancel article request"), _("No, do not cancel article request"), function( result ){ |
767 |
confirmModal( hold_title, _("Are you sure you want to cancel this article request?"), _("Yes, cancel article request"), _("No, do not cancel article request"), function( result ){ |
|
|
768 |
if( result ){ |
766 |
if( result ){ |
769 |
$("#delete_article_request_" + article_request_id ).submit(); |
767 |
$("#delete_article_request_" + article_request_id ).submit(); |
770 |
} |
768 |
} |