mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-01 02:05:41 +08:00
Merge pull request #1202 from ZmagoD/zd_SCI_2392
prevents asset preview modal to close on click [fixes SCI-2392]
This commit is contained in:
commit
6cab1746cd
2 changed files with 9 additions and 2 deletions
|
@ -52,7 +52,7 @@
|
|||
checkFileReady(url, modal);
|
||||
}
|
||||
modal.find('.file-name').text(name);
|
||||
modal.find('.modal-body').click(function() {
|
||||
modal.find('.preview-close').click(function() {
|
||||
modal.modal('hide');
|
||||
});
|
||||
modal.modal();
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
<div id="filePreviewModal" class="modal modal-file-preview" role="dialog" tabindex="-1" aria-labelledby="filePreviewModal" aria-hidden="true">
|
||||
<div id="filePreviewModal"
|
||||
class="modal modal-file-preview"
|
||||
role="dialog"
|
||||
tabindex="-1"
|
||||
aria-labelledby="filePreviewModal"
|
||||
aria-hidden="true"
|
||||
data-backdrop="static"
|
||||
data-keyboard="false">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
|
|
Loading…
Reference in a new issue