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

@ -147,36 +147,6 @@ $componentParams = JComponentHelper::getParams('com_componentbuilder');
<script type="text/javascript">
// #jform_how listeners for how_vvvvvzu function
jQuery('#jform_how').on('keyup',function()
{
var how_vvvvvzu = jQuery("#jform_how").val();
vvvvvzu(how_vvvvvzu);
});
jQuery('#adminForm').on('change', '#jform_how',function (e)
{
e.preventDefault();
var how_vvvvvzu = jQuery("#jform_how").val();
vvvvvzu(how_vvvvvzu);
});
// #jform_how listeners for how_vvvvvzv function
jQuery('#jform_how').on('keyup',function()
{
var how_vvvvvzv = jQuery("#jform_how").val();
vvvvvzv(how_vvvvvzv);
});
jQuery('#adminForm').on('change', '#jform_how',function (e)
{
e.preventDefault();
var how_vvvvvzv = jQuery("#jform_how").val();
vvvvvzv(how_vvvvvzv);
});
// #jform_how listeners for how_vvvvvzw function
jQuery('#jform_how').on('keyup',function()
{
@ -252,18 +222,48 @@ jQuery('#adminForm').on('change', '#jform_how',function (e)
});
// #jform_type listeners for type_vvvvwab function
// #jform_how listeners for how_vvvvwab function
jQuery('#jform_how').on('keyup',function()
{
var how_vvvvwab = jQuery("#jform_how").val();
vvvvwab(how_vvvvwab);
});
jQuery('#adminForm').on('change', '#jform_how',function (e)
{
e.preventDefault();
var how_vvvvwab = jQuery("#jform_how").val();
vvvvwab(how_vvvvwab);
});
// #jform_how listeners for how_vvvvwac function
jQuery('#jform_how').on('keyup',function()
{
var how_vvvvwac = jQuery("#jform_how").val();
vvvvwac(how_vvvvwac);
});
jQuery('#adminForm').on('change', '#jform_how',function (e)
{
e.preventDefault();
var how_vvvvwac = jQuery("#jform_how").val();
vvvvwac(how_vvvvwac);
});
// #jform_type listeners for type_vvvvwad function
jQuery('#jform_type').on('keyup',function()
{
var type_vvvvwab = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwab(type_vvvvwab);
var type_vvvvwad = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwad(type_vvvvwad);
});
jQuery('#adminForm').on('change', '#jform_type',function (e)
{
e.preventDefault();
var type_vvvvwab = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwab(type_vvvvwab);
var type_vvvvwad = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwad(type_vvvvwad);
});

View File

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