Lines 1119-1125
Link Here
|
1119 |
var hold_title = $(this).data("title"); |
1119 |
var hold_title = $(this).data("title"); |
1120 |
var reserve_id = $(this).data("reserve_id"); |
1120 |
var reserve_id = $(this).data("reserve_id"); |
1121 |
confirmModal( hold_title, _("Are you sure you want to cancel this hold?"), _("Yes, cancel hold"), _("No, do not cancel hold"), function( result ){ |
1121 |
confirmModal( hold_title, _("Are you sure you want to cancel this hold?"), _("Yes, cancel hold"), _("No, do not cancel hold"), function( result ){ |
1122 |
$("#bootstrap-confirm-box-modal").remove() |
|
|
1123 |
if( result ){ |
1122 |
if( result ){ |
1124 |
$("#delete_hold_" + reserve_id ).submit(); |
1123 |
$("#delete_hold_" + reserve_id ).submit(); |
1125 |
} |
1124 |
} |
Lines 1132-1138
Link Here
|
1132 |
var hold_title = $(this).data("title"); |
1131 |
var hold_title = $(this).data("title"); |
1133 |
var reserve_id = $(this).data("reserve_id"); |
1132 |
var reserve_id = $(this).data("reserve_id"); |
1134 |
confirmModal( hold_title, _("Are you sure you want to request cancelling this hold?"), _("Yes"), _("No"), function( result ){ |
1133 |
confirmModal( hold_title, _("Are you sure you want to request cancelling this hold?"), _("Yes"), _("No"), function( result ){ |
1135 |
$("#bootstrap-confirm-box-modal").remove() |
|
|
1136 |
if( result ){ |
1134 |
if( result ){ |
1137 |
$("#req_cancel_hold_" + reserve_id ).submit(); |
1135 |
$("#req_cancel_hold_" + reserve_id ).submit(); |
1138 |
} |
1136 |
} |
Lines 1146-1152
Link Here
|
1146 |
var article_request_id = $(this).data("article-request_id"); |
1144 |
var article_request_id = $(this).data("article-request_id"); |
1147 |
(function(row){ |
1145 |
(function(row){ |
1148 |
var doCancel = function( result ){ |
1146 |
var doCancel = function( result ){ |
1149 |
$("#bootstrap-confirm-box-modal").remove(); |
|
|
1150 |
if( result ){ |
1147 |
if( result ){ |
1151 |
$.ajax({ |
1148 |
$.ajax({ |
1152 |
type: "DELETE", |
1149 |
type: "DELETE", |
Lines 1197-1203
Link Here
|
1197 |
var title = _("Are you sure you want to suspend all holds?"); |
1194 |
var title = _("Are you sure you want to suspend all holds?"); |
1198 |
var body = _("All holds will be suspended."); |
1195 |
var body = _("All holds will be suspended."); |
1199 |
confirmModal( body, title, _("Yes, suspend all holds"), "", function( result ){ |
1196 |
confirmModal( body, title, _("Yes, suspend all holds"), "", function( result ){ |
1200 |
$("#bootstrap-confirm-box-modal").remove() |
|
|
1201 |
if( result ){ |
1197 |
if( result ){ |
1202 |
$("#suspend_all_holds").submit(); |
1198 |
$("#suspend_all_holds").submit(); |
1203 |
} |
1199 |
} |
Lines 1210-1216
Link Here
|
1210 |
var title = _("Are you sure you want to resume all suspended holds?"); |
1206 |
var title = _("Are you sure you want to resume all suspended holds?"); |
1211 |
var body = _("All holds will resume."); |
1207 |
var body = _("All holds will resume."); |
1212 |
confirmModal( body, title, _("Yes, resume all holds"), _("No, do not resume holds"), function( result ){ |
1208 |
confirmModal( body, title, _("Yes, resume all holds"), _("No, do not resume holds"), function( result ){ |
1213 |
$("#bootstrap-confirm-box-modal").remove() |
|
|
1214 |
if( result ){ |
1209 |
if( result ){ |
1215 |
$("#resume_all_holds").submit(); |
1210 |
$("#resume_all_holds").submit(); |
1216 |
} |
1211 |
} |