Skip to content
Snippets Groups Projects
Commit adc43de7 authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Feedback on bulk save when the cart is disabled. Refresh content instead of forward to My Research.

parent 02c70a61
No related merge requests found
...@@ -201,13 +201,6 @@ $(document).ready(function() { ...@@ -201,13 +201,6 @@ $(document).ready(function() {
Lightbox.addFormCallback('bulkEmail', function(html) { Lightbox.addFormCallback('bulkEmail', function(html) {
Lightbox.confirm(vufindString['bulk_email_success']); Lightbox.confirm(vufindString['bulk_email_success']);
}); });
Lightbox.addFormCallback('bulkSave', function(html) {
// After we close the lightbox, redirect to list view
Lightbox.addCloseAction(function() {
document.location.href = path+'/MyResearch/MyList/'+Lightbox.lastPOST['list'];
});
Lightbox.confirm(vufindString['bulk_save_success']);
});
$('#modal').on('hidden.bs.modal', function() { $('#modal').on('hidden.bs.modal', function() {
// Update cart items (add to cart, remove from cart, cart lightbox interface) // Update cart items (add to cart, remove from cart, cart lightbox interface)
var cartCount = $('#cartItems strong'); var cartCount = $('#cartItems strong');
......
...@@ -454,6 +454,10 @@ $(document).ready(function() { ...@@ -454,6 +454,10 @@ $(document).ready(function() {
Lightbox.addFormCallback('bulkDelete', function(html) { Lightbox.addFormCallback('bulkDelete', function(html) {
location.reload(); location.reload();
}); });
Lightbox.addFormCallback('bulkSave', function(html) {
Lightbox.addCloseAction(updatePageForLogin);
Lightbox.confirm(vufindString['bulk_save_success']);
});
Lightbox.addFormCallback('bulkRecord', function(html) { Lightbox.addFormCallback('bulkRecord', function(html) {
Lightbox.close(); Lightbox.close();
checkSaveStatuses(); checkSaveStatuses();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment