resolved gh-380 to insure that the list view JS file also gets added if set.
This commit is contained in:
@ -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###
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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": {
|
||||
|
@ -1,4 +1,4 @@
|
||||
###BOM###
|
||||
|
||||
/* JS Document */
|
||||
###ADMINJS###
|
||||
###ADMIN_JAVASCRIPT_FILE###
|
Reference in New Issue
Block a user