From feaacdcb81de3958162c2ee7644ae87abb9838dd Mon Sep 17 00:00:00 2001 From: Marco Mantovani Date: Tue, 5 Jan 2016 20:32:32 +0100 Subject: [PATCH] Possibility to change popup url I think it's better to give chance to change also the popup url request. For me it was necessary, maybe someothers also :) --- resources/assets/js/standalonepopup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/js/standalonepopup.js b/resources/assets/js/standalonepopup.js index 7a63f18..0f022f9 100644 --- a/resources/assets/js/standalonepopup.js +++ b/resources/assets/js/standalonepopup.js @@ -1,7 +1,7 @@ $(document).on('click','.popup_selector',function (event) { event.preventDefault(); var updateID = $(this).attr('data-inputid'); // Btn id clicked - var elfinderUrl = '/elfinder/popup/'; + var elfinderUrl = $(this).attr('data-popup') ? $(this).attr('data-popup') : '/elfinder/popup'; // trigger the reveal modal with elfinder inside var triggerUrl = elfinderUrl + updateID;