Major code formate to try and set a standared. Added four new fields for JavaScript files

This commit is contained in:
2017-12-15 01:10:47 +02:00
parent c9cad158e6
commit d3cbea5c82
172 changed files with 14538 additions and 14358 deletions

View File

@ -127,63 +127,33 @@ $componentParams = JComponentHelper::getParams('com_componentbuilder');
<script type="text/javascript">
// #jform_location listeners for location_vvvvwam function
// #jform_location listeners for location_vvvvwao function
jQuery('#jform_location').on('keyup',function()
{
var location_vvvvwam = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwam(location_vvvvwam);
var location_vvvvwao = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwao(location_vvvvwao);
});
jQuery('#adminForm').on('change', '#jform_location',function (e)
{
e.preventDefault();
var location_vvvvwam = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwam(location_vvvvwam);
var location_vvvvwao = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwao(location_vvvvwao);
});
// #jform_location listeners for location_vvvvwan function
// #jform_location listeners for location_vvvvwap function
jQuery('#jform_location').on('keyup',function()
{
var location_vvvvwan = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwan(location_vvvvwan);
var location_vvvvwap = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwap(location_vvvvwap);
});
jQuery('#adminForm').on('change', '#jform_location',function (e)
{
e.preventDefault();
var location_vvvvwan = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwan(location_vvvvwan);
});
// #jform_type listeners for type_vvvvwao function
jQuery('#jform_type').on('keyup',function()
{
var type_vvvvwao = jQuery("#jform_type").val();
vvvvwao(type_vvvvwao);
});
jQuery('#adminForm').on('change', '#jform_type',function (e)
{
e.preventDefault();
var type_vvvvwao = jQuery("#jform_type").val();
vvvvwao(type_vvvvwao);
});
// #jform_type listeners for type_vvvvwap function
jQuery('#jform_type').on('keyup',function()
{
var type_vvvvwap = jQuery("#jform_type").val();
vvvvwap(type_vvvvwap);
});
jQuery('#adminForm').on('change', '#jform_type',function (e)
{
e.preventDefault();
var type_vvvvwap = jQuery("#jform_type").val();
vvvvwap(type_vvvvwap);
var location_vvvvwap = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwap(location_vvvvwap);
});
@ -202,18 +172,48 @@ jQuery('#adminForm').on('change', '#jform_type',function (e)
});
// #jform_target listeners for target_vvvvwar function
// #jform_type listeners for type_vvvvwar function
jQuery('#jform_type').on('keyup',function()
{
var type_vvvvwar = jQuery("#jform_type").val();
vvvvwar(type_vvvvwar);
});
jQuery('#adminForm').on('change', '#jform_type',function (e)
{
e.preventDefault();
var type_vvvvwar = jQuery("#jform_type").val();
vvvvwar(type_vvvvwar);
});
// #jform_type listeners for type_vvvvwas function
jQuery('#jform_type').on('keyup',function()
{
var type_vvvvwas = jQuery("#jform_type").val();
vvvvwas(type_vvvvwas);
});
jQuery('#adminForm').on('change', '#jform_type',function (e)
{
e.preventDefault();
var type_vvvvwas = jQuery("#jform_type").val();
vvvvwas(type_vvvvwas);
});
// #jform_target listeners for target_vvvvwat function
jQuery('#jform_target').on('keyup',function()
{
var target_vvvvwar = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwar(target_vvvvwar);
var target_vvvvwat = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwat(target_vvvvwat);
});
jQuery('#adminForm').on('change', '#jform_target',function (e)
{
e.preventDefault();
var target_vvvvwar = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwar(target_vvvvwar);
var target_vvvvwat = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwat(target_vvvvwat);
});

View File

@ -53,15 +53,15 @@ class ComponentbuilderViewHelp_document extends JViewLegacy
$this->refid = $jinput->get('refid', 0, 'int');
$this->referral = '';
if ($this->refid)
{
// return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
}
elseif($this->ref)
{
// return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref;
}
{
// return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
}
elseif($this->ref)
{
// return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref;
}
// Set the toolbar
$this->addToolBar();
@ -163,7 +163,7 @@ class ComponentbuilderViewHelp_document extends JViewLegacy
}
}
/**
/**
* Escapes a value for output in a view script.
*
* @param mixed $var The output to escape.
@ -177,7 +177,7 @@ class ComponentbuilderViewHelp_document extends JViewLegacy
// use the helper htmlEscape method instead and shorten the string
return ComponentbuilderHelper::htmlEscape($var, $this->_charset, true, 30);
}
// use the helper htmlEscape method instead.
// use the helper htmlEscape method instead.
return ComponentbuilderHelper::htmlEscape($var, $this->_charset);
}