From eb2d869282b448af0efcb8308e15f62e648a4f55 Mon Sep 17 00:00:00 2001 From: Jordy van Dop Date: Mon, 15 Feb 2016 17:04:10 +0100 Subject: [PATCH] Trigger change event for libraries like VueJS. Elfinder only change the value, libraries like VueJS won't see this as a change. VueJS models will not be updated without triggering this event. --- resources/assets/js/standalonepopup.min.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/js/standalonepopup.min.js b/resources/assets/js/standalonepopup.min.js index 46957f8..3bf2a28 100644 --- a/resources/assets/js/standalonepopup.min.js +++ b/resources/assets/js/standalonepopup.min.js @@ -1 +1 @@ -function processSelectedFile(e,t){$("#"+t).val(e)}$(document).on("click",".popup_selector",function(e){e.preventDefault();var t=$(this).attr("data-inputid");var n="/elfinder/popup/";var r=n+t;$.colorbox({href:r,fastIframe:true,iframe:true,width:"70%",height:"50%"})}) +function processSelectedFile(e,t){$("#"+t).val(e).trigger('change')}$(document).on("click",".popup_selector",function(e){e.preventDefault();var t=$(this).attr("data-inputid");var n="/elfinder/popup/";var r=n+t;$.colorbox({href:r,fastIframe:true,iframe:true,width:"70%",height:"50%"})})