Added auto versioning to all JavaScript and CSS fiels being added, to insure it reloads when there is an update. Resolves gh-203
This commit is contained in:
@ -194,9 +194,9 @@ class ComponentbuilderViewAdmin_fields extends JViewLegacy
|
||||
$this->document = JFactory::getDocument();
|
||||
}
|
||||
$this->document->setTitle(JText::_($isNew ? 'COM_COMPONENTBUILDER_ADMIN_FIELDS_NEW' : 'COM_COMPONENTBUILDER_ADMIN_FIELDS_EDIT'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/admin_fields.css");
|
||||
$this->document->addScript(JURI::root() . $this->script);
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/admin_fields/submitbutton.js");
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/admin_fields.css", array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root() . $this->script, array('version' => 'auto'));
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/admin_fields/submitbutton.js", array('version' => 'auto'));
|
||||
JText::script('view not acceptable. Error');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user