Added (Linked To) back in related areas, so we can see where what is linked. Added ajax fields to the custom admin view. Added some backward compatibility to stylesheets and scripts being added, resolved gh-217. Fixed gh-212 no access lang string. Added the site CSS area to Joomla Component view resolved gh-216.

This commit is contained in:
2018-01-15 17:54:05 +02:00
parent 423df415fa
commit 98510ae504
144 changed files with 6453 additions and 5362 deletions

View File

@ -127,101 +127,101 @@ $componentParams = JComponentHelper::getParams('com_componentbuilder');
<script type="text/javascript">
// #jform_target listeners for target_vvvvvzs function
jQuery('#jform_target').on('keyup',function()
{
var target_vvvvvzs = jQuery("#jform_target input[type='radio']:checked").val();
vvvvvzs(target_vvvvvzs);
});
jQuery('#adminForm').on('change', '#jform_target',function (e)
{
e.preventDefault();
var target_vvvvvzs = jQuery("#jform_target input[type='radio']:checked").val();
vvvvvzs(target_vvvvvzs);
});
// #jform_target listeners for target_vvvvvzt function
jQuery('#jform_target').on('keyup',function()
{
var target_vvvvvzt = jQuery("#jform_target input[type='radio']:checked").val();
vvvvvzt(target_vvvvvzt);
});
jQuery('#adminForm').on('change', '#jform_target',function (e)
{
e.preventDefault();
var target_vvvvvzt = jQuery("#jform_target input[type='radio']:checked").val();
vvvvvzt(target_vvvvvzt);
});
// #jform_target listeners for target_vvvvvzu function
jQuery('#jform_target').on('keyup',function()
{
var target_vvvvvzu = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvvzu = jQuery("#jform_type input[type='radio']:checked").val();
vvvvvzu(target_vvvvvzu,type_vvvvvzu);
vvvvvzu(target_vvvvvzu);
});
jQuery('#adminForm').on('change', '#jform_target',function (e)
{
e.preventDefault();
var target_vvvvvzu = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvvzu = jQuery("#jform_type input[type='radio']:checked").val();
vvvvvzu(target_vvvvvzu,type_vvvvvzu);
});
// #jform_type listeners for type_vvvvvzu function
jQuery('#jform_type').on('keyup',function()
{
var target_vvvvvzu = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvvzu = jQuery("#jform_type input[type='radio']:checked").val();
vvvvvzu(target_vvvvvzu,type_vvvvvzu);
});
jQuery('#adminForm').on('change', '#jform_type',function (e)
{
e.preventDefault();
var target_vvvvvzu = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvvzu = jQuery("#jform_type input[type='radio']:checked").val();
vvvvvzu(target_vvvvvzu,type_vvvvvzu);
});
// #jform_type listeners for type_vvvvvzv function
jQuery('#jform_type').on('keyup',function()
{
var type_vvvvvzv = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvvzv = jQuery("#jform_target input[type='radio']:checked").val();
vvvvvzv(type_vvvvvzv,target_vvvvvzv);
});
jQuery('#adminForm').on('change', '#jform_type',function (e)
{
e.preventDefault();
var type_vvvvvzv = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvvzv = jQuery("#jform_target input[type='radio']:checked").val();
vvvvvzv(type_vvvvvzv,target_vvvvvzv);
vvvvvzu(target_vvvvvzu);
});
// #jform_target listeners for target_vvvvvzv function
jQuery('#jform_target').on('keyup',function()
{
var type_vvvvvzv = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvvzv = jQuery("#jform_target input[type='radio']:checked").val();
vvvvvzv(type_vvvvvzv,target_vvvvvzv);
vvvvvzv(target_vvvvvzv);
});
jQuery('#adminForm').on('change', '#jform_target',function (e)
{
e.preventDefault();
var type_vvvvvzv = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvvzv = jQuery("#jform_target input[type='radio']:checked").val();
vvvvvzv(type_vvvvvzv,target_vvvvvzv);
vvvvvzv(target_vvvvvzv);
});
// #jform_target listeners for target_vvvvvzw function
jQuery('#jform_target').on('keyup',function()
{
var target_vvvvvzw = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvvzw = jQuery("#jform_type input[type='radio']:checked").val();
vvvvvzw(target_vvvvvzw,type_vvvvvzw);
});
jQuery('#adminForm').on('change', '#jform_target',function (e)
{
e.preventDefault();
var target_vvvvvzw = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvvzw = jQuery("#jform_type input[type='radio']:checked").val();
vvvvvzw(target_vvvvvzw,type_vvvvvzw);
});
// #jform_type listeners for type_vvvvvzw function
jQuery('#jform_type').on('keyup',function()
{
var target_vvvvvzw = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvvzw = jQuery("#jform_type input[type='radio']:checked").val();
vvvvvzw(target_vvvvvzw,type_vvvvvzw);
});
jQuery('#adminForm').on('change', '#jform_type',function (e)
{
e.preventDefault();
var target_vvvvvzw = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvvzw = jQuery("#jform_type input[type='radio']:checked").val();
vvvvvzw(target_vvvvvzw,type_vvvvvzw);
});
// #jform_type listeners for type_vvvvvzx function
jQuery('#jform_type').on('keyup',function()
{
var type_vvvvvzx = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvvzx = jQuery("#jform_target input[type='radio']:checked").val();
vvvvvzx(type_vvvvvzx,target_vvvvvzx);
});
jQuery('#adminForm').on('change', '#jform_type',function (e)
{
e.preventDefault();
var type_vvvvvzx = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvvzx = jQuery("#jform_target input[type='radio']:checked").val();
vvvvvzx(type_vvvvvzx,target_vvvvvzx);
});
// #jform_target listeners for target_vvvvvzx function
jQuery('#jform_target').on('keyup',function()
{
var type_vvvvvzx = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvvzx = jQuery("#jform_target input[type='radio']:checked").val();
vvvvvzx(type_vvvvvzx,target_vvvvvzx);
});
jQuery('#adminForm').on('change', '#jform_target',function (e)
{
e.preventDefault();
var type_vvvvvzx = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvvzx = jQuery("#jform_target input[type='radio']:checked").val();
vvvvvzx(type_vvvvvzx,target_vvvvvzx);
});

View File

@ -194,19 +194,20 @@ class ComponentbuilderViewCustom_code extends JViewLegacy
$this->document = JFactory::getDocument();
}
$this->document->setTitle(JText::_($isNew ? 'COM_COMPONENTBUILDER_CUSTOM_CODE_NEW' : 'COM_COMPONENTBUILDER_CUSTOM_CODE_EDIT'));
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/custom_code.css", array('version' => 'auto'));
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/custom_code.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
// Add Ajax Token
$this->document->addScriptDeclaration("var token = '".JSession::getFormToken()."';");
$this->document->addScript(JURI::root() . $this->script, array('version' => 'auto'));
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/custom_code/submitbutton.js", array('version' => 'auto'));
$this->document->addScript(JURI::root() . $this->script, (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/custom_code/submitbutton.js", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
// add Uikit v2 JavaScripts
$this->document->addScript( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/js/uikit.min.js' , array('version' => 'auto'));
$this->document->addScript( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/js/components/lightbox.min.js', array('version' => 'auto'), array('type' => 'text/javascript', 'async' => 'async'));
$this->document->addScript( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/js/components/notify.min.js', array('version' => 'auto'), array('type' => 'text/javascript', 'async' => 'async'));
// add the Uikit v2 style sheets
$this->document->addStyleSheet( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/css/uikit.gradient.min.css' , array('version' => 'auto'));
$this->document->addStyleSheet( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/css/components/notify.gradient.min.css' , array('version' => 'auto'));
$this->document->addStyleSheet( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/css/uikit.gradient.min.css' , (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
$this->document->addStyleSheet( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/css/components/notify.gradient.min.css' , (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
// add Uikit v2 JavaScripts
$this->document->addScript( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/js/uikit.min.js' , (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
$this->document->addScript( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/js/components/lightbox.min.js', (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript', (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('type' => 'text/javascript', 'async' => 'async') : true);
$this->document->addScript( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/js/components/notify.min.js', (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript', (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('type' => 'text/javascript', 'async' => 'async') : true);
JText::script('view not acceptable. Error');
}
}