lightbox-bootstrap-rails icon indicating copy to clipboard operation
lightbox-bootstrap-rails copied to clipboard

How to remove the modal-header from the javascript?

Open FrankHald opened this issue 9 years ago • 3 comments

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.

FrankHald avatar Dec 10 '15 22:12 FrankHald

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.

luciuschoi avatar Dec 11 '15 00:12 luciuschoi

Exactly, thank you very much, and great work with the gem!

FrankHald avatar Dec 11 '15 00:12 FrankHald

:+1:

luciuschoi avatar Dec 11 '15 00:12 luciuschoi