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

Update Lightbox._currentUrl after link ajax calls. Fixes favorites success messages.

parent 4848f3a4
No related merge requests found
......@@ -203,9 +203,9 @@ VuFind.register('lightbox', function Lightbox() {
}
_lightboxTitle = $(this).data('lightboxTitle') || '';
_modalParams = $(this).data();
ajax(obj);
_currentUrl = this.href;
VuFind.modal('show');
ajax(obj);
return false;
}
};
......@@ -327,7 +327,7 @@ VuFind.register('lightbox', function Lightbox() {
VuFind.modal = function modalShortcut(cmd) {
if (cmd === 'show') {
_modal.modal($.extend({ show: true }, _modalParams));
_modal.modal($.extend({ show: true }, _modalParams));
} else {
_modal.modal(cmd);
}
......
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