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

@ -139,18 +139,18 @@ $componentParams = JComponentHelper::getParams('com_componentbuilder');
<script type="text/javascript">
// #jform_add_php_view listeners for add_php_view_vvvvvyt function
// #jform_add_php_view listeners for add_php_view_vvvvvyv function
jQuery('#jform_add_php_view').on('keyup',function()
{
var add_php_view_vvvvvyt = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvyt(add_php_view_vvvvvyt);
var add_php_view_vvvvvyv = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvyv(add_php_view_vvvvvyv);
});
jQuery('#adminForm').on('change', '#jform_add_php_view',function (e)
{
e.preventDefault();
var add_php_view_vvvvvyt = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvyt(add_php_view_vvvvvyt);
var add_php_view_vvvvvyv = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvyv(add_php_view_vvvvvyv);
});

View File

@ -53,15 +53,15 @@ class ComponentbuilderViewLayout 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 ComponentbuilderViewLayout extends JViewLegacy
}
}
/**
/**
* Escapes a value for output in a view script.
*
* @param mixed $var The output to escape.
@ -177,7 +177,7 @@ class ComponentbuilderViewLayout 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);
}