resolved gh-380 to insure that the list view JS file also gets added if set.

This commit is contained in:
2019-03-06 22:32:16 +02:00
parent a5de53c5fa
commit ccbf21fddb
8 changed files with 62 additions and 30 deletions

View File

@ -189,7 +189,7 @@ class ###Component###View###Views### extends JViewLegacy
$this->document = JFactory::getDocument();
}
$this->document->setTitle(JText::_('COM_###COMPONENT###_###VIEWS###'));
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_###component###/assets/css/###views###.css", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_###component###/assets/css/###views###.css", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###ADMIN_ADD_JAVASCRIPT_FILE###
}
/**