Added another field to admin_view to add custom script to document method of component admin views.

This commit is contained in:
2016-04-22 22:32:02 +01:00
parent 6871bfd9a2
commit 57bf464111
368 changed files with 2332 additions and 2215 deletions

View File

@@ -9,7 +9,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3
@version 2.1.4
@build 22nd April, 2016
@created 30th April, 2015
@package Component Builder

View File

@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3
@version 2.1.4
@build 22nd April, 2016
@created 30th April, 2015
@package Component Builder
@@ -114,18 +114,18 @@ $componentParams = JComponentHelper::getParams('com_componentbuilder');
<script type="text/javascript">
// #jform_add_php_view listeners for add_php_view_vvvvvxv function
// #jform_add_php_view listeners for add_php_view_vvvvvxw function
jQuery('#jform_add_php_view').on('keyup',function()
{
var add_php_view_vvvvvxv = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvxv(add_php_view_vvvvvxv);
var add_php_view_vvvvvxw = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvxw(add_php_view_vvvvvxw);
});
jQuery('#adminForm').on('change', '#jform_add_php_view',function (e)
{
e.preventDefault();
var add_php_view_vvvvvxv = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvxv(add_php_view_vvvvvxv);
var add_php_view_vvvvvxw = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvxw(add_php_view_vvvvvxw);
});

View File

@@ -10,7 +10,7 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.3
@version 2.1.4
@build 22nd April, 2016
@created 30th April, 2015
@package Component Builder
@@ -197,7 +197,7 @@ class ComponentbuilderViewTemplate extends JViewLegacy
// Add Ajax Token
$document->addScriptDeclaration("var token = '".JSession::getFormToken()."';");
$document->addScript(JURI::root() . $this->script);
$document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/template/submitbutton.js");
$document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/template/submitbutton.js");
JText::script('view not acceptable. Error');
}
}