feat(popup): Removes src images when closed

This commit is contained in:
sovanna 2019-07-22 14:30:41 +02:00
parent e9cdb87590
commit 2c98c17fe2
1 changed files with 4 additions and 0 deletions

View File

@ -169,6 +169,10 @@
<script>
$(function () {
$('#modalEnlarged').on('hidden.bs.modal', function (e) {
$('#enlarged').attr('src', '');
});
$('[data-popup]').click(function (evt) {
var _self = $(this);
var _img_enlarged = _self.data('nsrc');