From b4b67aa13644a921cf7f67468740c67f76f17552 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 14 Apr 2019 08:57:27 -0400 Subject: [PATCH 1/2] Change Module\Filer::content to rawContent to prevent full page to load in modal --- src/Module/Filer.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Module/Filer.php b/src/Module/Filer.php index 3b7d5175c..08c656ed3 100644 --- a/src/Module/Filer.php +++ b/src/Module/Filer.php @@ -22,7 +22,7 @@ class Filer extends BaseModule } } - public static function content() + public static function rawContent() { $a = self::getApp(); $logger = $a->getLogger(); @@ -44,9 +44,11 @@ class Filer extends BaseModule $filetags = explode(",", $filetags); $tpl = Renderer::getMarkupTemplate("filer_dialog.tpl"); - return Renderer::replaceMacros($tpl, [ + echo Renderer::replaceMacros($tpl, [ '$field' => ['term', L10n::t("Save to Folder:"), '', '', $filetags, L10n::t('- select -')], '$submit' => L10n::t('Save'), ]); + + exit; } } From 187ea9ab21b7ad632e47fce3c384fd886bcca566 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 14 Apr 2019 08:57:55 -0400 Subject: [PATCH 2/2] Update BaseModule::rawContent to add sample implementation --- src/BaseModule.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/BaseModule.php b/src/BaseModule.php index 85a506bea..3878d1507 100644 --- a/src/BaseModule.php +++ b/src/BaseModule.php @@ -35,6 +35,8 @@ abstract class BaseModule extends BaseObject */ public static function rawContent() { + // echo ''; + // exit; } /**