From 50ca5ba19ab73db1d5dd3a06db25f30fde752f07 Mon Sep 17 00:00:00 2001 From: Dimitris Grammatikogiannis Date: Sat, 15 Jan 2022 15:48:54 +0100 Subject: [PATCH] Pass data from PHP to JS nicely --- .../com_jedchecker/views/uploads/tmpl/default.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/administrator/components/com_jedchecker/views/uploads/tmpl/default.php b/administrator/components/com_jedchecker/views/uploads/tmpl/default.php index 839dee0..f425d35 100644 --- a/administrator/components/com_jedchecker/views/uploads/tmpl/default.php +++ b/administrator/components/com_jedchecker/views/uploads/tmpl/default.php @@ -43,12 +43,8 @@ else JHtml::stylesheet('media/com_jedchecker/css/style' . $cssSuffix); JHtml::script('media/com_jedchecker/js/script.js'); - -// List of rules -$options = json_encode($this->jsOptions); -JFactory::getDocument()->addScriptDeclaration("var jed_options = $options;"); - ?> +