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;