From 7d8be0892131be2e4a9a498756be74a5898a16f6 Mon Sep 17 00:00:00 2001 From: cesarve77 Date: Mon, 5 Jan 2015 23:24:34 -0430 Subject: [PATCH] Update comur.imagelibrary.js Trigger change event when update the input. For handle change event on custom functions --- Resources/public/js/comur.imagelibrary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/public/js/comur.imagelibrary.js b/Resources/public/js/comur.imagelibrary.js index 35af272e..c64f37a9 100644 --- a/Resources/public/js/comur.imagelibrary.js +++ b/Resources/public/js/comur.imagelibrary.js @@ -74,7 +74,7 @@ function initializeImageManager(id, options){ // console.log(data.result, data.result['image_upload_file']); // $('#image_preview img').remove(); // $('#image_preview').html(''); - $('#selected_image').val(data.result['image_upload_file'][0].name); + $('#selected_image').val(data.result['image_upload_file'][0].name).trigger('change'); initJCrop(id, options); }