Merge pull request #7009 from MrPetovan/bug/6952-fix-save-to-folder
Prevent full page to load on save to folder modal
This commit is contained in:
commit
34748e8ffd
2 changed files with 6 additions and 2 deletions
|
@ -35,6 +35,8 @@ abstract class BaseModule extends BaseObject
|
||||||
*/
|
*/
|
||||||
public static function rawContent()
|
public static function rawContent()
|
||||||
{
|
{
|
||||||
|
// echo '';
|
||||||
|
// exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -22,7 +22,7 @@ class Filer extends BaseModule
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function content()
|
public static function rawContent()
|
||||||
{
|
{
|
||||||
$a = self::getApp();
|
$a = self::getApp();
|
||||||
$logger = $a->getLogger();
|
$logger = $a->getLogger();
|
||||||
|
@ -44,9 +44,11 @@ class Filer extends BaseModule
|
||||||
$filetags = explode(",", $filetags);
|
$filetags = explode(",", $filetags);
|
||||||
|
|
||||||
$tpl = Renderer::getMarkupTemplate("filer_dialog.tpl");
|
$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 -')],
|
'$field' => ['term', L10n::t("Save to Folder:"), '', '', $filetags, L10n::t('- select -')],
|
||||||
'$submit' => L10n::t('Save'),
|
'$submit' => L10n::t('Save'),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue