Lines 951-956
$(function() {
Link Here
|
951 |
}); |
951 |
}); |
952 |
} |
952 |
} |
953 |
confirmModal( message, title, yes_label, no_label, function( result ){ |
953 |
confirmModal( message, title, yes_label, no_label, function( result ){ |
|
|
954 |
$("#bootstrap-confirm-box-modal").remove(); |
954 |
if( result ){ |
955 |
if( result ){ |
955 |
if( biblionumber ){ |
956 |
if( biblionumber ){ |
956 |
$("#shelf_delete_biblionumber").val( biblionumber ); |
957 |
$("#shelf_delete_biblionumber").val( biblionumber ); |
Lines 1003-1008
$(function() {
Link Here
|
1003 |
message += "<p>" + _("This list is shared. Other users will lose access to it.") + "</p>"; |
1004 |
message += "<p>" + _("This list is shared. Other users will lose access to it.") + "</p>"; |
1004 |
} |
1005 |
} |
1005 |
confirmModal( message, _("Are you sure you want to delete this list?"), _("Yes, delete"), _("No, do not delete"), function( result ){ |
1006 |
confirmModal( message, _("Are you sure you want to delete this list?"), _("Yes, delete"), _("No, do not delete"), function( result ){ |
|
|
1007 |
$("#bootstrap-confirm-box-modal").remove(); |
1006 |
if( result ){ |
1008 |
if( result ){ |
1007 |
$("#deleteshelf" + shelf_number ).submit(); |
1009 |
$("#deleteshelf" + shelf_number ).submit(); |
1008 |
} |
1010 |
} |
Lines 1015-1020
$(function() {
Link Here
|
1015 |
var shelf_name = $(this).data("shelfname"); |
1017 |
var shelf_name = $(this).data("shelfname"); |
1016 |
var shelf_number = $(this).data("shelfnumber"); |
1018 |
var shelf_number = $(this).data("shelfnumber"); |
1017 |
confirmModal( shelf_name, _("Are you sure you want to remove sharing? You will no longer have access to the list."), _("Yes, remove sharing"), _("No, do not remove sharing"), function( result ){ |
1019 |
confirmModal( shelf_name, _("Are you sure you want to remove sharing? You will no longer have access to the list."), _("Yes, remove sharing"), _("No, do not remove sharing"), function( result ){ |
|
|
1020 |
$("#bootstrap-confirm-box-modal").remove(); |
1018 |
if( result ){ |
1021 |
if( result ){ |
1019 |
$("#unshare" + shelf_number ).submit(); |
1022 |
$("#unshare" + shelf_number ).submit(); |
1020 |
} |
1023 |
} |