Trying to remove random variable changes per/build, or at least to cut it down in a major way.

This commit is contained in:
Llewellyn van der Merwe 2016-02-26 15:57:10 +02:00
parent 9e61837cda
commit 94426493d4
8 changed files with 140 additions and 140 deletions

View File

@ -18,38 +18,38 @@
/------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_mHaLxVHYyC_required = false;
jform_aSTTcjFsgo_required = false;
jform_PiHSAiXeZa_required = false;
jform_brAbXYXLXw_required = false;
jform_vvvvvvzvvw_required = false;
jform_vvvvvwavvx_required = false;
jform_vvvvvwbvvy_required = false;
jform_vvvvvwcvvz_required = false;
// Initial Script
jQuery(document).ready(function()
{
var location_qXGzcva = jQuery("#jform_location input[type='radio']:checked").val();
qXGzcva(location_qXGzcva);
var location_vvvvvvx = jQuery("#jform_location input[type='radio']:checked").val();
vvvvvvx(location_vvvvvvx);
var location_rBfCTdX = jQuery("#jform_location input[type='radio']:checked").val();
rBfCTdX(location_rBfCTdX);
var location_vvvvvvy = jQuery("#jform_location input[type='radio']:checked").val();
vvvvvvy(location_vvvvvvy);
var type_mHaLxVH = jQuery("#jform_type").val();
mHaLxVH(type_mHaLxVH);
var type_vvvvvvz = jQuery("#jform_type").val();
vvvvvvz(type_vvvvvvz);
var type_aSTTcjF = jQuery("#jform_type").val();
aSTTcjF(type_aSTTcjF);
var type_vvvvvwa = jQuery("#jform_type").val();
vvvvvwa(type_vvvvvwa);
var type_PiHSAiX = jQuery("#jform_type").val();
PiHSAiX(type_PiHSAiX);
var type_vvvvvwb = jQuery("#jform_type").val();
vvvvvwb(type_vvvvvwb);
var target_brAbXYX = jQuery("#jform_target input[type='radio']:checked").val();
brAbXYX(target_brAbXYX);
var target_vvvvvwc = jQuery("#jform_target input[type='radio']:checked").val();
vvvvvwc(target_vvvvvwc);
});
// the qXGzcva function
function qXGzcva(location_qXGzcva)
// the vvvvvvx function
function vvvvvvx(location_vvvvvvx)
{
// set the function logic
if (location_qXGzcva == 1)
if (location_vvvvvvx == 1)
{
jQuery('#jform_admin_view').closest('.control-group').show();
}
@ -59,11 +59,11 @@ function qXGzcva(location_qXGzcva)
}
}
// the rBfCTdX function
function rBfCTdX(location_rBfCTdX)
// the vvvvvvy function
function vvvvvvy(location_vvvvvvy)
{
// set the function logic
if (location_rBfCTdX == 2)
if (location_vvvvvvy == 2)
{
jQuery('#jform_site_view').closest('.control-group').show();
}
@ -73,198 +73,198 @@ function rBfCTdX(location_rBfCTdX)
}
}
// the mHaLxVH function
function mHaLxVH(type_mHaLxVH)
// the vvvvvvz function
function vvvvvvz(type_vvvvvvz)
{
if (isSet(type_mHaLxVH) && type_mHaLxVH.constructor !== Array)
if (isSet(type_vvvvvvz) && type_vvvvvvz.constructor !== Array)
{
var temp_mHaLxVH = type_mHaLxVH;
var type_mHaLxVH = [];
type_mHaLxVH.push(temp_mHaLxVH);
var temp_vvvvvvz = type_vvvvvvz;
var type_vvvvvvz = [];
type_vvvvvvz.push(temp_vvvvvvz);
}
else if (!isSet(type_mHaLxVH))
else if (!isSet(type_vvvvvvz))
{
var type_mHaLxVH = [];
var type_vvvvvvz = [];
}
var type = type_mHaLxVH.some(type_mHaLxVH_SomeFunc);
var type = type_vvvvvvz.some(type_vvvvvvz_SomeFunc);
// set this function logic
if (type)
{
jQuery('#jform_url').closest('.control-group').show();
if (jform_mHaLxVHYyC_required)
if (jform_vvvvvvzvvw_required)
{
updateFieldRequired('url',0);
jQuery('#jform_url').prop('required','required');
jQuery('#jform_url').attr('aria-required',true);
jQuery('#jform_url').addClass('required');
jform_mHaLxVHYyC_required = false;
jform_vvvvvvzvvw_required = false;
}
}
else
{
jQuery('#jform_url').closest('.control-group').hide();
if (!jform_mHaLxVHYyC_required)
if (!jform_vvvvvvzvvw_required)
{
updateFieldRequired('url',1);
jQuery('#jform_url').removeAttr('required');
jQuery('#jform_url').removeAttr('aria-required');
jQuery('#jform_url').removeClass('required');
jform_mHaLxVHYyC_required = true;
jform_vvvvvvzvvw_required = true;
}
}
}
// the mHaLxVH Some function
function type_mHaLxVH_SomeFunc(type_mHaLxVH)
// the vvvvvvz Some function
function type_vvvvvvz_SomeFunc(type_vvvvvvz)
{
// set the function logic
if (type_mHaLxVH == 3)
if (type_vvvvvvz == 3)
{
return true;
}
return false;
}
// the aSTTcjF function
function aSTTcjF(type_aSTTcjF)
// the vvvvvwa function
function vvvvvwa(type_vvvvvwa)
{
if (isSet(type_aSTTcjF) && type_aSTTcjF.constructor !== Array)
if (isSet(type_vvvvvwa) && type_vvvvvwa.constructor !== Array)
{
var temp_aSTTcjF = type_aSTTcjF;
var type_aSTTcjF = [];
type_aSTTcjF.push(temp_aSTTcjF);
var temp_vvvvvwa = type_vvvvvwa;
var type_vvvvvwa = [];
type_vvvvvwa.push(temp_vvvvvwa);
}
else if (!isSet(type_aSTTcjF))
else if (!isSet(type_vvvvvwa))
{
var type_aSTTcjF = [];
var type_vvvvvwa = [];
}
var type = type_aSTTcjF.some(type_aSTTcjF_SomeFunc);
var type = type_vvvvvwa.some(type_vvvvvwa_SomeFunc);
// set this function logic
if (type)
{
jQuery('#jform_article').closest('.control-group').show();
if (jform_aSTTcjFsgo_required)
if (jform_vvvvvwavvx_required)
{
updateFieldRequired('article',0);
jQuery('#jform_article').prop('required','required');
jQuery('#jform_article').attr('aria-required',true);
jQuery('#jform_article').addClass('required');
jform_aSTTcjFsgo_required = false;
jform_vvvvvwavvx_required = false;
}
}
else
{
jQuery('#jform_article').closest('.control-group').hide();
if (!jform_aSTTcjFsgo_required)
if (!jform_vvvvvwavvx_required)
{
updateFieldRequired('article',1);
jQuery('#jform_article').removeAttr('required');
jQuery('#jform_article').removeAttr('aria-required');
jQuery('#jform_article').removeClass('required');
jform_aSTTcjFsgo_required = true;
jform_vvvvvwavvx_required = true;
}
}
}
// the aSTTcjF Some function
function type_aSTTcjF_SomeFunc(type_aSTTcjF)
// the vvvvvwa Some function
function type_vvvvvwa_SomeFunc(type_vvvvvwa)
{
// set the function logic
if (type_aSTTcjF == 1)
if (type_vvvvvwa == 1)
{
return true;
}
return false;
}
// the PiHSAiX function
function PiHSAiX(type_PiHSAiX)
// the vvvvvwb function
function vvvvvwb(type_vvvvvwb)
{
if (isSet(type_PiHSAiX) && type_PiHSAiX.constructor !== Array)
if (isSet(type_vvvvvwb) && type_vvvvvwb.constructor !== Array)
{
var temp_PiHSAiX = type_PiHSAiX;
var type_PiHSAiX = [];
type_PiHSAiX.push(temp_PiHSAiX);
var temp_vvvvvwb = type_vvvvvwb;
var type_vvvvvwb = [];
type_vvvvvwb.push(temp_vvvvvwb);
}
else if (!isSet(type_PiHSAiX))
else if (!isSet(type_vvvvvwb))
{
var type_PiHSAiX = [];
var type_vvvvvwb = [];
}
var type = type_PiHSAiX.some(type_PiHSAiX_SomeFunc);
var type = type_vvvvvwb.some(type_vvvvvwb_SomeFunc);
// set this function logic
if (type)
{
jQuery('#jform_content-lbl').closest('.control-group').show();
if (jform_PiHSAiXeZa_required)
if (jform_vvvvvwbvvy_required)
{
updateFieldRequired('content',0);
jQuery('#jform_content').prop('required','required');
jQuery('#jform_content').attr('aria-required',true);
jQuery('#jform_content').addClass('required');
jform_PiHSAiXeZa_required = false;
jform_vvvvvwbvvy_required = false;
}
}
else
{
jQuery('#jform_content-lbl').closest('.control-group').hide();
if (!jform_PiHSAiXeZa_required)
if (!jform_vvvvvwbvvy_required)
{
updateFieldRequired('content',1);
jQuery('#jform_content').removeAttr('required');
jQuery('#jform_content').removeAttr('aria-required');
jQuery('#jform_content').removeClass('required');
jform_PiHSAiXeZa_required = true;
jform_vvvvvwbvvy_required = true;
}
}
}
// the PiHSAiX Some function
function type_PiHSAiX_SomeFunc(type_PiHSAiX)
// the vvvvvwb Some function
function type_vvvvvwb_SomeFunc(type_vvvvvwb)
{
// set the function logic
if (type_PiHSAiX == 2)
if (type_vvvvvwb == 2)
{
return true;
}
return false;
}
// the brAbXYX function
function brAbXYX(target_brAbXYX)
// the vvvvvwc function
function vvvvvwc(target_vvvvvwc)
{
// set the function logic
if (target_brAbXYX == 1)
if (target_vvvvvwc == 1)
{
jQuery('#jform_groups').closest('.control-group').show();
if (jform_brAbXYXLXw_required)
if (jform_vvvvvwcvvz_required)
{
updateFieldRequired('groups',0);
jQuery('#jform_groups').prop('required','required');
jQuery('#jform_groups').attr('aria-required',true);
jQuery('#jform_groups').addClass('required');
jform_brAbXYXLXw_required = false;
jform_vvvvvwcvvz_required = false;
}
}
else
{
jQuery('#jform_groups').closest('.control-group').hide();
if (!jform_brAbXYXLXw_required)
if (!jform_vvvvvwcvvz_required)
{
updateFieldRequired('groups',1);
jQuery('#jform_groups').removeAttr('required');
jQuery('#jform_groups').removeAttr('aria-required');
jQuery('#jform_groups').removeClass('required');
jform_brAbXYXLXw_required = true;
jform_vvvvvwcvvz_required = true;
}
}
}

View File

@ -18,23 +18,23 @@
/------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_IJPcusUjqK_required = false;
jform_vvvvvvwvvv_required = false;
// Initial Script
jQuery(document).ready(function()
{
var name_AxdqOTc = jQuery("#jform_name").val();
AxdqOTc(name_AxdqOTc);
var name_vvvvvvv = jQuery("#jform_name").val();
vvvvvvv(name_vvvvvvv);
var add_IJPcusU = jQuery("#jform_add input[type='radio']:checked").val();
IJPcusU(add_IJPcusU);
var add_vvvvvvw = jQuery("#jform_add input[type='radio']:checked").val();
vvvvvvw(add_vvvvvvw);
});
// the AxdqOTc function
function AxdqOTc(name_AxdqOTc)
// the vvvvvvv function
function vvvvvvv(name_vvvvvvv)
{
// set the function logic
if (isSet(name_AxdqOTc))
if (isSet(name_vvvvvvv))
{
jQuery('#jform_alias').closest('.control-group').show();
jQuery('#jform_description').closest('.control-group').show();
@ -46,20 +46,20 @@ function AxdqOTc(name_AxdqOTc)
}
}
// the IJPcusU function
function IJPcusU(add_IJPcusU)
// the vvvvvvw function
function vvvvvvw(add_vvvvvvw)
{
// set the function logic
if (add_IJPcusU == 1)
if (add_vvvvvvw == 1)
{
jQuery('#jform_acronym').closest('.control-group').show();
if (jform_IJPcusUjqK_required)
if (jform_vvvvvvwvvv_required)
{
updateFieldRequired('acronym',0);
jQuery('#jform_acronym').prop('required','required');
jQuery('#jform_acronym').attr('aria-required',true);
jQuery('#jform_acronym').addClass('required');
jform_IJPcusUjqK_required = false;
jform_vvvvvvwvvv_required = false;
}
jQuery('#jform_website').closest('.control-group').show();
@ -67,13 +67,13 @@ function IJPcusU(add_IJPcusU)
else
{
jQuery('#jform_acronym').closest('.control-group').hide();
if (!jform_IJPcusUjqK_required)
if (!jform_vvvvvvwvvv_required)
{
updateFieldRequired('acronym',1);
jQuery('#jform_acronym').removeAttr('required');
jQuery('#jform_acronym').removeAttr('aria-required');
jQuery('#jform_acronym').removeClass('required');
jform_IJPcusUjqK_required = true;
jform_vvvvvvwvvv_required = true;
}
jQuery('#jform_website').closest('.control-group').hide();
}

View File

@ -173,7 +173,7 @@ class DemoModelHelp_documents extends JModelList
*
* @return translatable string
*/
protected function selectionTranslation($value,$name)
public function selectionTranslation($value,$name)
{
// Array of type language strings
if ($name == 'type')

View File

@ -151,7 +151,7 @@ class DemoModelLooks extends JModelList
*
* @return translatable string
*/
protected function selectionTranslation($value,$name)
public function selectionTranslation($value,$name)
{
// Array of add language strings
if ($name == 'add')

View File

@ -97,93 +97,93 @@ $componentParams = JComponentHelper::getParams('com_demo');
<script type="text/javascript">
// #jform_location listeners for location_qXGzcva function
// #jform_location listeners for location_vvvvvvx function
jQuery('#jform_location').on('keyup',function()
{
var location_qXGzcva = jQuery("#jform_location input[type='radio']:checked").val();
qXGzcva(location_qXGzcva);
var location_vvvvvvx = jQuery("#jform_location input[type='radio']:checked").val();
vvvvvvx(location_vvvvvvx);
});
jQuery('#adminForm').on('change', '#jform_location',function (e)
{
e.preventDefault();
var location_qXGzcva = jQuery("#jform_location input[type='radio']:checked").val();
qXGzcva(location_qXGzcva);
var location_vvvvvvx = jQuery("#jform_location input[type='radio']:checked").val();
vvvvvvx(location_vvvvvvx);
});
// #jform_location listeners for location_rBfCTdX function
// #jform_location listeners for location_vvvvvvy function
jQuery('#jform_location').on('keyup',function()
{
var location_rBfCTdX = jQuery("#jform_location input[type='radio']:checked").val();
rBfCTdX(location_rBfCTdX);
var location_vvvvvvy = jQuery("#jform_location input[type='radio']:checked").val();
vvvvvvy(location_vvvvvvy);
});
jQuery('#adminForm').on('change', '#jform_location',function (e)
{
e.preventDefault();
var location_rBfCTdX = jQuery("#jform_location input[type='radio']:checked").val();
rBfCTdX(location_rBfCTdX);
var location_vvvvvvy = jQuery("#jform_location input[type='radio']:checked").val();
vvvvvvy(location_vvvvvvy);
});
// #jform_type listeners for type_mHaLxVH function
// #jform_type listeners for type_vvvvvvz function
jQuery('#jform_type').on('keyup',function()
{
var type_mHaLxVH = jQuery("#jform_type").val();
mHaLxVH(type_mHaLxVH);
var type_vvvvvvz = jQuery("#jform_type").val();
vvvvvvz(type_vvvvvvz);
});
jQuery('#adminForm').on('change', '#jform_type',function (e)
{
e.preventDefault();
var type_mHaLxVH = jQuery("#jform_type").val();
mHaLxVH(type_mHaLxVH);
var type_vvvvvvz = jQuery("#jform_type").val();
vvvvvvz(type_vvvvvvz);
});
// #jform_type listeners for type_aSTTcjF function
// #jform_type listeners for type_vvvvvwa function
jQuery('#jform_type').on('keyup',function()
{
var type_aSTTcjF = jQuery("#jform_type").val();
aSTTcjF(type_aSTTcjF);
var type_vvvvvwa = jQuery("#jform_type").val();
vvvvvwa(type_vvvvvwa);
});
jQuery('#adminForm').on('change', '#jform_type',function (e)
{
e.preventDefault();
var type_aSTTcjF = jQuery("#jform_type").val();
aSTTcjF(type_aSTTcjF);
var type_vvvvvwa = jQuery("#jform_type").val();
vvvvvwa(type_vvvvvwa);
});
// #jform_type listeners for type_PiHSAiX function
// #jform_type listeners for type_vvvvvwb function
jQuery('#jform_type').on('keyup',function()
{
var type_PiHSAiX = jQuery("#jform_type").val();
PiHSAiX(type_PiHSAiX);
var type_vvvvvwb = jQuery("#jform_type").val();
vvvvvwb(type_vvvvvwb);
});
jQuery('#adminForm').on('change', '#jform_type',function (e)
{
e.preventDefault();
var type_PiHSAiX = jQuery("#jform_type").val();
PiHSAiX(type_PiHSAiX);
var type_vvvvvwb = jQuery("#jform_type").val();
vvvvvwb(type_vvvvvwb);
});
// #jform_target listeners for target_brAbXYX function
// #jform_target listeners for target_vvvvvwc function
jQuery('#jform_target').on('keyup',function()
{
var target_brAbXYX = jQuery("#jform_target input[type='radio']:checked").val();
brAbXYX(target_brAbXYX);
var target_vvvvvwc = jQuery("#jform_target input[type='radio']:checked").val();
vvvvvwc(target_vvvvvwc);
});
jQuery('#adminForm').on('change', '#jform_target',function (e)
{
e.preventDefault();
var target_brAbXYX = jQuery("#jform_target input[type='radio']:checked").val();
brAbXYX(target_brAbXYX);
var target_vvvvvwc = jQuery("#jform_target input[type='radio']:checked").val();
vvvvvwc(target_vvvvvwc);
});

View File

@ -335,7 +335,7 @@ class DemoViewHelp_documents extends JViewLegacy
);
}
public function getTheTypeSelections()
protected function getTheTypeSelections()
{
// Get a db connection.
$db = JFactory::getDbo();
@ -371,7 +371,7 @@ class DemoViewHelp_documents extends JViewLegacy
return false;
}
public function getTheLocationSelections()
protected function getTheLocationSelections()
{
// Get a db connection.
$db = JFactory::getDbo();
@ -407,7 +407,7 @@ class DemoViewHelp_documents extends JViewLegacy
return false;
}
public function getTheAdmin_viewSelections()
protected function getTheAdmin_viewSelections()
{
// Get a db connection.
$db = JFactory::getDbo();
@ -439,7 +439,7 @@ class DemoViewHelp_documents extends JViewLegacy
return false;
}
public function getTheSite_viewSelections()
protected function getTheSite_viewSelections()
{
// Get a db connection.
$db = JFactory::getDbo();

View File

@ -103,33 +103,33 @@ $componentParams = JComponentHelper::getParams('com_demo');
<script type="text/javascript">
// #jform_name listeners for name_AxdqOTc function
// #jform_name listeners for name_vvvvvvv function
jQuery('#jform_name').on('keyup',function()
{
var name_AxdqOTc = jQuery("#jform_name").val();
AxdqOTc(name_AxdqOTc);
var name_vvvvvvv = jQuery("#jform_name").val();
vvvvvvv(name_vvvvvvv);
});
jQuery('#adminForm').on('change', '#jform_name',function (e)
{
e.preventDefault();
var name_AxdqOTc = jQuery("#jform_name").val();
AxdqOTc(name_AxdqOTc);
var name_vvvvvvv = jQuery("#jform_name").val();
vvvvvvv(name_vvvvvvv);
});
// #jform_add listeners for add_IJPcusU function
// #jform_add listeners for add_vvvvvvw function
jQuery('#jform_add').on('keyup',function()
{
var add_IJPcusU = jQuery("#jform_add input[type='radio']:checked").val();
IJPcusU(add_IJPcusU);
var add_vvvvvvw = jQuery("#jform_add input[type='radio']:checked").val();
vvvvvvw(add_vvvvvvw);
});
jQuery('#adminForm').on('change', '#jform_add',function (e)
{
e.preventDefault();
var add_IJPcusU = jQuery("#jform_add input[type='radio']:checked").val();
IJPcusU(add_IJPcusU);
var add_vvvvvvw = jQuery("#jform_add input[type='radio']:checked").val();
vvvvvvw(add_vvvvvvw);
});

View File

@ -291,7 +291,7 @@ class DemoViewLooks extends JViewLegacy
);
}
public function getTheAddSelections()
protected function getTheAddSelections()
{
// Get a db connection.
$db = JFactory::getDbo();
@ -327,7 +327,7 @@ class DemoViewLooks extends JViewLegacy
return false;
}
public function getTheAcronymSelections()
protected function getTheAcronymSelections()
{
// Get a db connection.
$db = JFactory::getDbo();