lightbox-bootstrap-rails
lightbox-bootstrap-rails copied to clipboard
How to remove the modal-header from the javascript?
Is there a way, so that I can remove the line in ekko-lightbox.js:
header = '<div class="modal-header"' + (this.options.title || this.options.always_show_close ? '' : ' style="display:none"') + '><button type="button" class="close" data-dismiss="modal" aria-hidden="$
Because I don't use the header, so its just a blank bar.
I think your request is about ekko-lightbox.js not lightbox-bootstrap-rails gem. If you see http://stackoverflow.com/a/12190456,
$('#modal-content').on('shown.bs.modal', function() {
$("#txtname").focus();
})
I think It may be an answer for your question.
$('#modal-content').on('shown.bs.modal', function() {
$("h4.modal-title").text("");
})
I wish it can help you.
Exactly, thank you very much, and great work with the gem!
:+1: