Skip to content
Snippets Groups Projects
Commit 90876c51 authored by samueloph's avatar samueloph Committed by Demian Katz
Browse files

Change modal's h4 title to non breaking space

This will prevent VuFind from generating an empty h4 tag.
parent 5c3c58fc
No related merge requests found
...@@ -135,7 +135,7 @@ var Lightbox = { ...@@ -135,7 +135,7 @@ var Lightbox = {
if(this.XHR) { this.XHR.abort(); } if(this.XHR) { this.XHR.abort(); }
// Reset content so we start fresh when we open a lightbox // Reset content so we start fresh when we open a lightbox
$('#modal').removeData('modal'); $('#modal').removeData('modal');
$('#modal').find('.modal-title').html(''); $('#modal').find('.modal-title').html(' ');
$('#modal').find('.modal-body').html(vufindString.loading + "..."); $('#modal').find('.modal-body').html(vufindString.loading + "...");
}, },
/** /**
...@@ -416,7 +416,7 @@ $(document).ready(function() { ...@@ -416,7 +416,7 @@ $(document).ready(function() {
$('#modal').on('hidden.bs.modal', Lightbox.closeActions); $('#modal').on('hidden.bs.modal', Lightbox.closeActions);
/** /**
* If a link with the class .modal-link triggers the lightbox, * If a link with the class .modal-link triggers the lightbox,
* look for a title="" to use as our lightbox title. * look for a title attribute to use as our lightbox title.
*/ */
$('.modal-link,.help-link').click(function() { $('.modal-link,.help-link').click(function() {
var title = $(this).attr('title'); var title = $(this).attr('title');
......
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 id="modalTitle" class="modal-title"></h4> <h4 id="modalTitle" class="modal-title">&nbsp;</h4>
</div> </div>
<div class="modal-body"><?=$this->transEsc('Loading') ?>...</div> <div class="modal-body"><?=$this->transEsc('Loading') ?>...</div>
</div> </div>
......
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