diff --git a/themes/bootstrap3/js/common.js b/themes/bootstrap3/js/common.js index 74a067b41b331b0695f082a2e57c93acd9fddc22..70cc9d5c5612b4f0511ddabac09ec744c7f8db7a 100644 --- a/themes/bootstrap3/js/common.js +++ b/themes/bootstrap3/js/common.js @@ -118,7 +118,8 @@ function phoneNumberFormHandler(numID, regionCode) { * is called and the 'shown' lightbox event is triggered */ function bulkActionSubmit($form) { - var submit = $form.find('[type="submit"][clicked=true]').attr('name'); + var button = $form.find('[type="submit"][clicked=true]'); + var submit = button.attr('name'); var checks = $form.find('input.checkbox-select-item:checked'); if(checks.length == 0 && submit != 'empty') { Lightbox.displayError(vufindString['bulk_noitems_advice']); @@ -132,6 +133,8 @@ function bulkActionSubmit($form) { } document.location.href = url; } else { + $('#modal .modal-title').html(button.attr('title')); + Lightbox.titleSet = true; Lightbox.submit($form, Lightbox.changeContent); } return false; @@ -543,4 +546,4 @@ $(document).ready(function() { var parts = this.href.split('/'); return Lightbox.get(parts[parts.length-3],'Save',{id:$(this).attr('id')}); }); -}); \ No newline at end of file +});