Further improved #37 to ensure language strings are set and reversed, also add extra buttons to the compiler page. Major restructure of custom code implementation to make it more stable. Resolved #40 by updating the default field sql values.

This commit is contained in:
2017-02-14 01:24:38 +02:00
parent de008d5907
commit 290a51dd5a
247 changed files with 2394 additions and 1513 deletions

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 35 of this MVC
@build 10th February, 2017
@version @update number 55 of this MVC
@build 13th February, 2017
@created 11th October, 2016
@package Component Builder
@subpackage submitbutton.js

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 35 of this MVC
@build 10th February, 2017
@version @update number 55 of this MVC
@build 13th February, 2017
@created 11th October, 2016
@package Component Builder
@subpackage edit.php
@ -224,9 +224,24 @@ jQuery('#adminForm').on('change', '#jform_target',function (e)
});
var ide = jQuery('#jform_id').val();
if (ide > 0) {
jQuery('#jcb-placeholder').html('<code> [CUSTO'+'MCODE='+ide+'] </code>');
jQuery('#jcb-placeholder-arg').html('<code> [CUSTO'+'MCODE='+ide+'&#43;value1,value2] </code>');
}
jQuery('#adminForm').on('change', '#jform_function_name',function (e)
{
e.preventDefault();
var target = jQuery("#jform_target input[type='radio']:checked").val();
if (target == 2) {
var functioName = jQuery('#jform_function_name').val();
// check if this function name is taken
checkFunctionName(functioName);
}
});
jQuery('#adminForm').on('change', '#jform_target',function (e)
{
e.preventDefault();
var target = jQuery("#jform_target input[type='radio']:checked").val();
if (target == 2) {
var functioName = jQuery('#jform_function_name').val();
// check if this function name is taken
checkFunctionName(functioName);
}
});
</script>

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 35 of this MVC
@build 10th February, 2017
@version @update number 55 of this MVC
@build 13th February, 2017
@created 11th October, 2016
@package Component Builder
@subpackage view.html.php
@ -192,9 +192,17 @@ class ComponentbuilderViewCustom_code extends JViewLegacy
$isNew = ($this->item->id < 1);
$document = JFactory::getDocument();
$document->setTitle(JText::_($isNew ? 'COM_COMPONENTBUILDER_CUSTOM_CODE_NEW' : 'COM_COMPONENTBUILDER_CUSTOM_CODE_EDIT'));
$document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/custom_code.css");
$document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/custom_code.css");
// Add Ajax Token
$document->addScriptDeclaration("var token = '".JSession::getFormToken()."';");
$document->addScript(JURI::root() . $this->script);
$document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/custom_code/submitbutton.js");
$document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/custom_code/submitbutton.js");
// add JavaScripts
$document->addScript( JURI::root(true) .'/media/com_componentbuilder/uikit/js/uikit.min.js' );
$document->addScript( JURI::root(true) .'/media/com_componentbuilder/uikit/js/components/notify.min.js', 'text/javascript', true);
// add the style sheets
$document->addStyleSheet( JURI::root(true) .'/media/com_componentbuilder/uikit/css/uikit.gradient.min.css' );
$document->addStyleSheet( JURI::root(true) .'/media/com_componentbuilder/uikit/css/components/notify.gradient.min.css' );
JText::script('view not acceptable. Error');
}
}