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###
}
/**

View File

@ -503,6 +503,11 @@
"path": "c0mp0n3nt/",
"rename": "update_server",
"type": "update_server"
},
"viewFile.js": {
"path": "c0mp0n3nt/admin/assets/js",
"rename": "viewFile",
"type": "javascript_file"
}
},
"site": {

View File

@ -1,4 +1,4 @@
###BOM###
/* JS Document */
###ADMINJS###
###ADMIN_JAVASCRIPT_FILE###