From 8b9adf78a9abe090f6e404e80e09e74cab14dd25 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Wed, 24 Sep 2014 10:59:19 +0200 Subject: [PATCH] feature #3194: Do not remove event target when the file input changes --- src/sunstone/public/bower_components/resumablejs/resumable.js | 2 +- src/sunstone/public/js/plugins/images-tab.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sunstone/public/bower_components/resumablejs/resumable.js b/src/sunstone/public/bower_components/resumablejs/resumable.js index 43790307da..5e9f342483 100644 --- a/src/sunstone/public/bower_components/resumablejs/resumable.js +++ b/src/sunstone/public/bower_components/resumablejs/resumable.js @@ -710,7 +710,7 @@ // When new files are added, simply append them to the overall list input.addEventListener('change', function(e){ appendFilesFromFileList(e.target.files,e); - e.target.value = ''; + //e.target.value = ''; }, false); }); }; diff --git a/src/sunstone/public/js/plugins/images-tab.js b/src/sunstone/public/js/plugins/images-tab.js index 71b99a78fe..07df19b891 100644 --- a/src/sunstone/public/js/plugins/images-tab.js +++ b/src/sunstone/public/js/plugins/images-tab.js @@ -936,7 +936,7 @@ function initialize_create_image_dialog(dialog) { } }); - uploader.assignBrowse($('#file-uploader-input',dialog)[0]); + uploader.assignBrowse($('#file-uploader-input',dialog)); var fileName = ''; var file_input = false;