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:
Zmago Devetak 2018-06-13 08:41:41 +02:00 committed by GitHub
commit 6cab1746cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View file

@ -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();

View file

@ -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">