Added another field to admin_view to add custom script to document method of component admin views.
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.1.3
|
||||
@version 2.1.4
|
||||
@build 22nd April, 2016
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
|
@ -10,7 +10,7 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.1.3
|
||||
@version 2.1.4
|
||||
@build 22nd April, 2016
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
|
@ -10,7 +10,7 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.1.3
|
||||
@version 2.1.4
|
||||
@build 22nd April, 2016
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@ -195,7 +195,7 @@ class ComponentbuilderViewSnippet extends JViewLegacy
|
||||
$document->setTitle(JText::_($isNew ? 'COM_COMPONENTBUILDER_SNIPPET_NEW' : 'COM_COMPONENTBUILDER_SNIPPET_EDIT'));
|
||||
$document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/snippet.css");
|
||||
$document->addScript(JURI::root() . $this->script);
|
||||
$document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/snippet/submitbutton.js");
|
||||
$document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/snippet/submitbutton.js");
|
||||
JText::script('view not acceptable. Error');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user