diff --git a/src/components/com_tjdashboard/administrator/views/dashboard/tmpl/edit.php b/src/components/com_tjdashboard/administrator/views/dashboard/tmpl/edit.php index 520e7a5..3a18406 100644 --- a/src/components/com_tjdashboard/administrator/views/dashboard/tmpl/edit.php +++ b/src/components/com_tjdashboard/administrator/views/dashboard/tmpl/edit.php @@ -31,17 +31,17 @@ $layout = $isModal ? 'modal' : 'edit'; $tmpl = $isModal || $input->get('tmpl', '', 'cmd') === 'component' ? '&tmpl=component' : ''; -JFactory::getDocument()->addScriptDeclaration(' - Joomla.submitbutton = function(task) - { - if (task == "dashboard.cancel" || document.formvalidator.isValid(document.getElementById("dashboard-form"))) - { - jQuery("#permissions-sliders select").attr("disabled", "disabled"); - ' . $this->form->getField('description')->save() . ' - Joomla.submitform(task, document.getElementById("dashboard-form")); - } - }; -'); +// JFactory::getDocument()->addScriptDeclaration(' +// Joomla.submitbutton = function(task) +// { +// if (task == "dashboard.cancel" || document.formvalidator.isValid(document.getElementById("dashboard-form"))) +// { +// jQuery("#permissions-sliders select").attr("disabled", "disabled"); +// ' . $this->form->getField('description')->save() . ' +// Joomla.submitform(task, document.getElementById("dashboard-form")); +// } +// }; +// '); ?>
diff --git a/src/components/com_tjdashboard/administrator/views/dashboard/view.html.php b/src/components/com_tjdashboard/administrator/views/dashboard/view.html.php index 3831af7..d9b5449 100644 --- a/src/components/com_tjdashboard/administrator/views/dashboard/view.html.php +++ b/src/components/com_tjdashboard/administrator/views/dashboard/view.html.php @@ -147,7 +147,7 @@ protected function addToolbar() JLoader::import('administrator.components.com_tjdashboard.helpers.dashboard', JPATH_SITE); DashboardHelper::addSubmenu('dashboard'); - if ($app->isAdmin()) + if ($app->isClient('administrator')) { $this->sidebar = JHtmlSidebar::render(); }