From c990cf7adfae6dba351faeb656920c82862a7e74 Mon Sep 17 00:00:00 2001 From: nikitozzzzzzz Date: Wed, 28 Mar 2018 11:48:34 +0300 Subject: [PATCH] - fixed click handler for disabled buttons (File/Image upload); --- assets/js/um-modal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/um-modal.js b/assets/js/um-modal.js index b21431bb..54d45f87 100644 --- a/assets/js/um-modal.js +++ b/assets/js/um-modal.js @@ -69,7 +69,7 @@ jQuery(document).ready(function() { return false; }); - jQuery(document).on('click', '.um-finish-upload.file', function(){ + jQuery(document).on('click', '.um-finish-upload.file:not(.disabled)', function(){ var key = jQuery(this).attr('data-key'); var preview = jQuery(this).parents('.um-modal-body').find('.um-single-file-preview').html(); @@ -83,7 +83,7 @@ jQuery(document).ready(function() { jQuery('.um-single-file-preview[data-key='+key+']').parents('.um-field').find('input[type=hidden]').val( jQuery('.um-single-file-preview[data-key='+key+']').parents('.um-field').find('.um-single-fileinfo a').attr('href') ); }); - jQuery(document).on('click', '.um-finish-upload.image', function(){ + jQuery(document).on('click', '.um-finish-upload.image:not(.disabled)', function(){ var elem = jQuery(this); var key = jQuery(this).attr('data-key');