Added script to hide user creation in user manager. All other changes are only random variable name and date changes (due to automation)

This commit is contained in:
Llewellyn van der Merwe 2016-02-24 14:26:30 +02:00
parent cd3ceecee8
commit 61acc11141
32 changed files with 462 additions and 463 deletions

View File

@ -26,7 +26,7 @@ max_input_vars = 5000
+ *Version*: 3.3.7 + *Version*: 3.3.7
+ *Copyright*: Copyright (C) 2015. All Rights Reserved + *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
+ *Line count*: **83758** + *Line count*: **83757**
+ *File count*: **553** + *File count*: **553**
+ *Folder count*: **101** + *Folder count*: **101**

View File

@ -619,13 +619,12 @@ abstract class CostbenefitprojectionHelper
3 => array( 3 => array(
'path' => JPATH_ADMINISTRATOR . '/components/com_users/views/users/view.html.php', 'path' => JPATH_ADMINISTRATOR . '/components/com_users/views/users/view.html.php',
'replace' => array( 'replace' => array(
"if (\$canDo->get('core.create'))" => "if (\$canDo->get('core.create') && \$user->authorise('core.admin', 'com_costbenefitprojection'))", "if (\$canDo->get('core.create'))" => "if (\$canDo->get('core.create') && \$user->authorise('core.admin', 'com_costbenefitprojection'))")
"if (\$user->authorise('core.create', 'com_users') ),
&& \$user->authorise('core.edit', 'com_users') 4 => array(
&& \$user->authorise('core.edit.state', 'com_users'))" => "if (\$user->authorise('core.create', 'com_users') 'path' => JPATH_ADMINISTRATOR . '/components/com_users/views/users/view.html.php',
&& \$user->authorise('core.edit', 'com_users') 'replace' => array(
&& \$user->authorise('core.edit.state', 'com_users') "// Add a batch button\n\t\tif (\$user->authorise('core.create', 'com_users')" => "// Add a batch button only if user also has admin right in com_costbenefitprojection\n\t\tif (\$user->authorise('core.create', 'com_users')\n\t\t\t&& \$user->authorise('core.admin', 'com_costbenefitprojection')")
&& \$user->authorise('core.admin', 'com_costbenefitprojection'))")
) )
); );
// check if hack is still set // check if hack is still set

View File

@ -22,7 +22,7 @@
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// set the defaults // set the defaults
$items = $displayData->dghinterventions; $items = $displayData->ledinterventions;
$user = JFactory::getUser(); $user = JFactory::getUser();
$id = $displayData->item->id; $id = $displayData->item->id;
$edit = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit"; $edit = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit";

View File

@ -22,7 +22,7 @@
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// set the defaults // set the defaults
$items = $displayData->vqpscaling_factors; $items = $displayData->obqscaling_factors;
$user = JFactory::getUser(); $user = JFactory::getUser();
$id = $displayData->item->id; $id = $displayData->item->id;
$edit = "index.php?option=com_costbenefitprojection&view=scaling_factors&task=scaling_factor.edit"; $edit = "index.php?option=com_costbenefitprojection&view=scaling_factors&task=scaling_factor.edit";

View File

@ -22,7 +22,7 @@
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// set the defaults // set the defaults
$items = $displayData->odrcompanies; $items = $displayData->vrvcompanies;
$user = JFactory::getUser(); $user = JFactory::getUser();
$id = $displayData->item->id; $id = $displayData->item->id;
$edit = "index.php?option=com_costbenefitprojection&view=companies&task=company.edit"; $edit = "index.php?option=com_costbenefitprojection&view=companies&task=company.edit";

View File

@ -22,7 +22,7 @@
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// set the defaults // set the defaults
$items = $displayData->phminterventions; $items = $displayData->eyjinterventions;
$user = JFactory::getUser(); $user = JFactory::getUser();
$id = $displayData->item->id; $id = $displayData->item->id;
$edit = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit"; $edit = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit";

View File

@ -22,7 +22,7 @@
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// set the defaults // set the defaults
$items = $displayData->dxrservice_providers; $items = $displayData->iqaservice_providers;
$user = JFactory::getUser(); $user = JFactory::getUser();
$id = $displayData->item->id; $id = $displayData->item->id;
$edit = "index.php?option=com_costbenefitprojection&view=service_providers&task=service_provider.edit"; $edit = "index.php?option=com_costbenefitprojection&view=service_providers&task=service_provider.edit";

View File

@ -22,7 +22,7 @@
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// set the defaults // set the defaults
$items = $displayData->yvacompanies; $items = $displayData->tvocompanies;
$user = JFactory::getUser(); $user = JFactory::getUser();
$id = $displayData->item->id; $id = $displayData->item->id;
$edit = "index.php?option=com_costbenefitprojection&view=companies&task=company.edit"; $edit = "index.php?option=com_costbenefitprojection&view=companies&task=company.edit";

View File

@ -154,8 +154,8 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
$item->tags->getTagIds($item->id, 'com_costbenefitprojection.company'); $item->tags->getTagIds($item->id, 'com_costbenefitprojection.company');
} }
} }
$this->companyumdn = $item->id; $this->companybxoc = $item->id;
$this->companynige = $item->id; $this->companyhojs = $item->id;
return $item; return $item;
} }
@ -165,7 +165,7 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
* *
* @return mixed An array of data items on success, false on failure. * @return mixed An array of data items on success, false on failure.
*/ */
public function getVqpscaling_factors() public function getObqscaling_factors()
{ {
// Get the user object. // Get the user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -204,15 +204,15 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
$query->select($db->quoteName('h.name','company_name')); $query->select($db->quoteName('h.name','company_name'));
$query->join('LEFT', $db->quoteName('#__costbenefitprojection_company', 'h') . ' ON (' . $db->quoteName('a.company') . ' = ' . $db->quoteName('h.id') . ')'); $query->join('LEFT', $db->quoteName('#__costbenefitprojection_company', 'h') . ' ON (' . $db->quoteName('a.company') . ' = ' . $db->quoteName('h.id') . ')');
// Filter by companyumdn global. // Filter by companybxoc global.
$companyumdn = $this->companyumdn; $companybxoc = $this->companybxoc;
if (is_numeric($companyumdn )) if (is_numeric($companybxoc ))
{ {
$query->where('a.company = ' . (int) $companyumdn ); $query->where('a.company = ' . (int) $companybxoc );
} }
elseif (is_string($companyumdn)) elseif (is_string($companybxoc))
{ {
$query->where('a.company = ' . $db->quote($companyumdn)); $query->where('a.company = ' . $db->quote($companybxoc));
} }
else else
{ {
@ -255,7 +255,7 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
* *
* @return mixed An array of data items on success, false on failure. * @return mixed An array of data items on success, false on failure.
*/ */
public function getDghinterventions() public function getLedinterventions()
{ {
// Get the user object. // Get the user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -290,15 +290,15 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
$query->select($db->quoteName('g.name','company_name')); $query->select($db->quoteName('g.name','company_name'));
$query->join('LEFT', $db->quoteName('#__costbenefitprojection_company', 'g') . ' ON (' . $db->quoteName('a.company') . ' = ' . $db->quoteName('g.id') . ')'); $query->join('LEFT', $db->quoteName('#__costbenefitprojection_company', 'g') . ' ON (' . $db->quoteName('a.company') . ' = ' . $db->quoteName('g.id') . ')');
// Filter by companynige global. // Filter by companyhojs global.
$companynige = $this->companynige; $companyhojs = $this->companyhojs;
if (is_numeric($companynige )) if (is_numeric($companyhojs ))
{ {
$query->where('a.company = ' . (int) $companynige ); $query->where('a.company = ' . (int) $companyhojs );
} }
elseif (is_string($companynige)) elseif (is_string($companyhojs))
{ {
$query->where('a.company = ' . $db->quote($companynige)); $query->where('a.company = ' . $db->quote($companyhojs));
} }
else else
{ {
@ -351,7 +351,7 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
foreach ($items as $nr => &$item) foreach ($items as $nr => &$item)
{ {
// convert type // convert type
$item->type = $this->selectionTranslationDghinterventions($item->type, 'type'); $item->type = $this->selectionTranslationLedinterventions($item->type, 'type');
} }
} }
@ -365,7 +365,7 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
* *
* @return translatable string * @return translatable string
*/ */
public function selectionTranslationDghinterventions($value,$name) public function selectionTranslationLedinterventions($value,$name)
{ {
// Array of type language strings // Array of type language strings
if ($name == 'type') if ($name == 'type')

View File

@ -101,9 +101,9 @@ class CostbenefitprojectionModelCountry extends JModelAdmin
$item->tags->getTagIds($item->id, 'com_costbenefitprojection.country'); $item->tags->getTagIds($item->id, 'com_costbenefitprojection.country');
} }
} }
$this->countryxzpg = $item->id; $this->countryeizm = $item->id;
$this->countrygbit = $item->id; $this->countrylfvx = $item->id;
$this->countrylyqz = $item->id; $this->countrybpba = $item->id;
return $item; return $item;
} }
@ -113,7 +113,7 @@ class CostbenefitprojectionModelCountry extends JModelAdmin
* *
* @return mixed An array of data items on success, false on failure. * @return mixed An array of data items on success, false on failure.
*/ */
public function getPhminterventions() public function getEyjinterventions()
{ {
// Get the user object. // Get the user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -148,15 +148,15 @@ class CostbenefitprojectionModelCountry extends JModelAdmin
$query->select($db->quoteName('g.name','company_name')); $query->select($db->quoteName('g.name','company_name'));
$query->join('LEFT', $db->quoteName('#__costbenefitprojection_company', 'g') . ' ON (' . $db->quoteName('a.company') . ' = ' . $db->quoteName('g.id') . ')'); $query->join('LEFT', $db->quoteName('#__costbenefitprojection_company', 'g') . ' ON (' . $db->quoteName('a.company') . ' = ' . $db->quoteName('g.id') . ')');
// Filter by countryxzpg global. // Filter by countryeizm global.
$countryxzpg = $this->countryxzpg; $countryeizm = $this->countryeizm;
if (is_numeric($countryxzpg )) if (is_numeric($countryeizm ))
{ {
$query->where('a.country = ' . (int) $countryxzpg ); $query->where('a.country = ' . (int) $countryeizm );
} }
elseif (is_string($countryxzpg)) elseif (is_string($countryeizm))
{ {
$query->where('a.country = ' . $db->quote($countryxzpg)); $query->where('a.country = ' . $db->quote($countryeizm));
} }
else else
{ {
@ -209,7 +209,7 @@ class CostbenefitprojectionModelCountry extends JModelAdmin
foreach ($items as $nr => &$item) foreach ($items as $nr => &$item)
{ {
// convert type // convert type
$item->type = $this->selectionTranslationPhminterventions($item->type, 'type'); $item->type = $this->selectionTranslationEyjinterventions($item->type, 'type');
} }
} }
@ -223,7 +223,7 @@ class CostbenefitprojectionModelCountry extends JModelAdmin
* *
* @return translatable string * @return translatable string
*/ */
public function selectionTranslationPhminterventions($value,$name) public function selectionTranslationEyjinterventions($value,$name)
{ {
// Array of type language strings // Array of type language strings
if ($name == 'type') if ($name == 'type')
@ -246,7 +246,7 @@ class CostbenefitprojectionModelCountry extends JModelAdmin
* *
* @return mixed An array of data items on success, false on failure. * @return mixed An array of data items on success, false on failure.
*/ */
public function getDxrservice_providers() public function getIqaservice_providers()
{ {
// Get the user object. // Get the user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -285,15 +285,15 @@ class CostbenefitprojectionModelCountry extends JModelAdmin
$query->select($db->quoteName('h.name','country_name')); $query->select($db->quoteName('h.name','country_name'));
$query->join('LEFT', $db->quoteName('#__costbenefitprojection_country', 'h') . ' ON (' . $db->quoteName('a.country') . ' = ' . $db->quoteName('h.id') . ')'); $query->join('LEFT', $db->quoteName('#__costbenefitprojection_country', 'h') . ' ON (' . $db->quoteName('a.country') . ' = ' . $db->quoteName('h.id') . ')');
// Filter by countrygbit global. // Filter by countrylfvx global.
$countrygbit = $this->countrygbit; $countrylfvx = $this->countrylfvx;
if (is_numeric($countrygbit )) if (is_numeric($countrylfvx ))
{ {
$query->where('a.country = ' . (int) $countrygbit ); $query->where('a.country = ' . (int) $countrylfvx );
} }
elseif (is_string($countrygbit)) elseif (is_string($countrylfvx))
{ {
$query->where('a.country = ' . $db->quote($countrygbit)); $query->where('a.country = ' . $db->quote($countrylfvx));
} }
else else
{ {
@ -336,7 +336,7 @@ class CostbenefitprojectionModelCountry extends JModelAdmin
* *
* @return mixed An array of data items on success, false on failure. * @return mixed An array of data items on success, false on failure.
*/ */
public function getOdrcompanies() public function getVrvcompanies()
{ {
// Get the user object. // Get the user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -379,15 +379,15 @@ class CostbenefitprojectionModelCountry extends JModelAdmin
$query->select($db->quoteName('i.user','service_provider_user')); $query->select($db->quoteName('i.user','service_provider_user'));
$query->join('LEFT', $db->quoteName('#__costbenefitprojection_service_provider', 'i') . ' ON (' . $db->quoteName('a.service_provider') . ' = ' . $db->quoteName('i.id') . ')'); $query->join('LEFT', $db->quoteName('#__costbenefitprojection_service_provider', 'i') . ' ON (' . $db->quoteName('a.service_provider') . ' = ' . $db->quoteName('i.id') . ')');
// Filter by countrylyqz global. // Filter by countrybpba global.
$countrylyqz = $this->countrylyqz; $countrybpba = $this->countrybpba;
if (is_numeric($countrylyqz )) if (is_numeric($countrybpba ))
{ {
$query->where('a.country = ' . (int) $countrylyqz ); $query->where('a.country = ' . (int) $countrybpba );
} }
elseif (is_string($countrylyqz)) elseif (is_string($countrybpba))
{ {
$query->where('a.country = ' . $db->quote($countrylyqz)); $query->where('a.country = ' . $db->quote($countrybpba));
} }
else else
{ {
@ -442,9 +442,9 @@ class CostbenefitprojectionModelCountry extends JModelAdmin
foreach ($items as $nr => &$item) foreach ($items as $nr => &$item)
{ {
// convert department // convert department
$item->department = $this->selectionTranslationOdrcompanies($item->department, 'department'); $item->department = $this->selectionTranslationVrvcompanies($item->department, 'department');
// convert per // convert per
$item->per = $this->selectionTranslationOdrcompanies($item->per, 'per'); $item->per = $this->selectionTranslationVrvcompanies($item->per, 'per');
} }
} }
@ -458,7 +458,7 @@ class CostbenefitprojectionModelCountry extends JModelAdmin
* *
* @return translatable string * @return translatable string
*/ */
public function selectionTranslationOdrcompanies($value,$name) public function selectionTranslationVrvcompanies($value,$name)
{ {
// Array of department language strings // Array of department language strings
if ($name == 'department') if ($name == 'department')

View File

@ -17,178 +17,178 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// Some Global Values // Some Global Values
jform_mKGkOJKBNP_required = false; jform_kZREHRfabo_required = false;
jform_mKGkOJKvVz_required = false; jform_kZREHRfdSJ_required = false;
jform_mKGkOJKrGI_required = false; jform_kZREHRfowX_required = false;
jform_mKGkOJKIOZ_required = false; jform_kZREHRfiYR_required = false;
jform_mKGkOJKqxA_required = false; jform_kZREHRfNDv_required = false;
jform_mKGkOJKwZw_required = false; jform_kZREHRfNHz_required = false;
jform_mKGkOJKutU_required = false; jform_kZREHRfEcd_required = false;
// Initial Script // Initial Script
jQuery(document).ready(function() jQuery(document).ready(function()
{ {
var department_mKGkOJK = jQuery("#jform_department input[type='radio']:checked").val(); var department_kZREHRf = jQuery("#jform_department input[type='radio']:checked").val();
mKGkOJK(department_mKGkOJK); kZREHRf(department_kZREHRf);
var department_kvzvhgM = jQuery("#jform_department input[type='radio']:checked").val(); var department_qFovEif = jQuery("#jform_department input[type='radio']:checked").val();
kvzvhgM(department_kvzvhgM); qFovEif(department_qFovEif);
}); });
// the mKGkOJK function // the kZREHRf function
function mKGkOJK(department_mKGkOJK) function kZREHRf(department_kZREHRf)
{ {
// set the function logic // set the function logic
if (department_mKGkOJK == 2) if (department_kZREHRf == 2)
{ {
jQuery('#jform_causesrisks').closest('.control-group').show(); jQuery('#jform_causesrisks').closest('.control-group').show();
if (jform_mKGkOJKBNP_required) if (jform_kZREHRfabo_required)
{ {
updateFieldRequired('causesrisks',0); updateFieldRequired('causesrisks',0);
jQuery('#jform_causesrisks').prop('required','required'); jQuery('#jform_causesrisks').prop('required','required');
jQuery('#jform_causesrisks').attr('aria-required',true); jQuery('#jform_causesrisks').attr('aria-required',true);
jQuery('#jform_causesrisks').addClass('required'); jQuery('#jform_causesrisks').addClass('required');
jform_mKGkOJKBNP_required = false; jform_kZREHRfabo_required = false;
} }
jQuery('#jform_percentfemale').closest('.control-group').show(); jQuery('#jform_percentfemale').closest('.control-group').show();
jQuery('#jform_percentmale').closest('.control-group').show(); jQuery('#jform_percentmale').closest('.control-group').show();
jQuery('#jform_productivity_losses').closest('.control-group').show(); jQuery('#jform_productivity_losses').closest('.control-group').show();
if (jform_mKGkOJKvVz_required) if (jform_kZREHRfdSJ_required)
{ {
updateFieldRequired('productivity_losses',0); updateFieldRequired('productivity_losses',0);
jQuery('#jform_productivity_losses').prop('required','required'); jQuery('#jform_productivity_losses').prop('required','required');
jQuery('#jform_productivity_losses').attr('aria-required',true); jQuery('#jform_productivity_losses').attr('aria-required',true);
jQuery('#jform_productivity_losses').addClass('required'); jQuery('#jform_productivity_losses').addClass('required');
jform_mKGkOJKvVz_required = false; jform_kZREHRfdSJ_required = false;
} }
jQuery('#jform_medical_turnovers_females').closest('.control-group').show(); jQuery('#jform_medical_turnovers_females').closest('.control-group').show();
if (jform_mKGkOJKrGI_required) if (jform_kZREHRfowX_required)
{ {
updateFieldRequired('medical_turnovers_females',0); updateFieldRequired('medical_turnovers_females',0);
jQuery('#jform_medical_turnovers_females').prop('required','required'); jQuery('#jform_medical_turnovers_females').prop('required','required');
jQuery('#jform_medical_turnovers_females').attr('aria-required',true); jQuery('#jform_medical_turnovers_females').attr('aria-required',true);
jQuery('#jform_medical_turnovers_females').addClass('required'); jQuery('#jform_medical_turnovers_females').addClass('required');
jform_mKGkOJKrGI_required = false; jform_kZREHRfowX_required = false;
} }
jQuery('#jform_medical_turnovers_males').closest('.control-group').show(); jQuery('#jform_medical_turnovers_males').closest('.control-group').show();
if (jform_mKGkOJKIOZ_required) if (jform_kZREHRfiYR_required)
{ {
updateFieldRequired('medical_turnovers_males',0); updateFieldRequired('medical_turnovers_males',0);
jQuery('#jform_medical_turnovers_males').prop('required','required'); jQuery('#jform_medical_turnovers_males').prop('required','required');
jQuery('#jform_medical_turnovers_males').attr('aria-required',true); jQuery('#jform_medical_turnovers_males').attr('aria-required',true);
jQuery('#jform_medical_turnovers_males').addClass('required'); jQuery('#jform_medical_turnovers_males').addClass('required');
jform_mKGkOJKIOZ_required = false; jform_kZREHRfiYR_required = false;
} }
jQuery('#jform_sick_leave_females').closest('.control-group').show(); jQuery('#jform_sick_leave_females').closest('.control-group').show();
if (jform_mKGkOJKqxA_required) if (jform_kZREHRfNDv_required)
{ {
updateFieldRequired('sick_leave_females',0); updateFieldRequired('sick_leave_females',0);
jQuery('#jform_sick_leave_females').prop('required','required'); jQuery('#jform_sick_leave_females').prop('required','required');
jQuery('#jform_sick_leave_females').attr('aria-required',true); jQuery('#jform_sick_leave_females').attr('aria-required',true);
jQuery('#jform_sick_leave_females').addClass('required'); jQuery('#jform_sick_leave_females').addClass('required');
jform_mKGkOJKqxA_required = false; jform_kZREHRfNDv_required = false;
} }
jQuery('#jform_sick_leave_males').closest('.control-group').show(); jQuery('#jform_sick_leave_males').closest('.control-group').show();
if (jform_mKGkOJKwZw_required) if (jform_kZREHRfNHz_required)
{ {
updateFieldRequired('sick_leave_males',0); updateFieldRequired('sick_leave_males',0);
jQuery('#jform_sick_leave_males').prop('required','required'); jQuery('#jform_sick_leave_males').prop('required','required');
jQuery('#jform_sick_leave_males').attr('aria-required',true); jQuery('#jform_sick_leave_males').attr('aria-required',true);
jQuery('#jform_sick_leave_males').addClass('required'); jQuery('#jform_sick_leave_males').addClass('required');
jform_mKGkOJKwZw_required = false; jform_kZREHRfNHz_required = false;
} }
jQuery('#jform_total_healthcare').closest('.control-group').show(); jQuery('#jform_total_healthcare').closest('.control-group').show();
if (jform_mKGkOJKutU_required) if (jform_kZREHRfEcd_required)
{ {
updateFieldRequired('total_healthcare',0); updateFieldRequired('total_healthcare',0);
jQuery('#jform_total_healthcare').prop('required','required'); jQuery('#jform_total_healthcare').prop('required','required');
jQuery('#jform_total_healthcare').attr('aria-required',true); jQuery('#jform_total_healthcare').attr('aria-required',true);
jQuery('#jform_total_healthcare').addClass('required'); jQuery('#jform_total_healthcare').addClass('required');
jform_mKGkOJKutU_required = false; jform_kZREHRfEcd_required = false;
} }
} }
else else
{ {
jQuery('#jform_causesrisks').closest('.control-group').hide(); jQuery('#jform_causesrisks').closest('.control-group').hide();
if (!jform_mKGkOJKBNP_required) if (!jform_kZREHRfabo_required)
{ {
updateFieldRequired('causesrisks',1); updateFieldRequired('causesrisks',1);
jQuery('#jform_causesrisks').removeAttr('required'); jQuery('#jform_causesrisks').removeAttr('required');
jQuery('#jform_causesrisks').removeAttr('aria-required'); jQuery('#jform_causesrisks').removeAttr('aria-required');
jQuery('#jform_causesrisks').removeClass('required'); jQuery('#jform_causesrisks').removeClass('required');
jform_mKGkOJKBNP_required = true; jform_kZREHRfabo_required = true;
} }
jQuery('#jform_percentfemale').closest('.control-group').hide(); jQuery('#jform_percentfemale').closest('.control-group').hide();
jQuery('#jform_percentmale').closest('.control-group').hide(); jQuery('#jform_percentmale').closest('.control-group').hide();
jQuery('#jform_productivity_losses').closest('.control-group').hide(); jQuery('#jform_productivity_losses').closest('.control-group').hide();
if (!jform_mKGkOJKvVz_required) if (!jform_kZREHRfdSJ_required)
{ {
updateFieldRequired('productivity_losses',1); updateFieldRequired('productivity_losses',1);
jQuery('#jform_productivity_losses').removeAttr('required'); jQuery('#jform_productivity_losses').removeAttr('required');
jQuery('#jform_productivity_losses').removeAttr('aria-required'); jQuery('#jform_productivity_losses').removeAttr('aria-required');
jQuery('#jform_productivity_losses').removeClass('required'); jQuery('#jform_productivity_losses').removeClass('required');
jform_mKGkOJKvVz_required = true; jform_kZREHRfdSJ_required = true;
} }
jQuery('#jform_medical_turnovers_females').closest('.control-group').hide(); jQuery('#jform_medical_turnovers_females').closest('.control-group').hide();
if (!jform_mKGkOJKrGI_required) if (!jform_kZREHRfowX_required)
{ {
updateFieldRequired('medical_turnovers_females',1); updateFieldRequired('medical_turnovers_females',1);
jQuery('#jform_medical_turnovers_females').removeAttr('required'); jQuery('#jform_medical_turnovers_females').removeAttr('required');
jQuery('#jform_medical_turnovers_females').removeAttr('aria-required'); jQuery('#jform_medical_turnovers_females').removeAttr('aria-required');
jQuery('#jform_medical_turnovers_females').removeClass('required'); jQuery('#jform_medical_turnovers_females').removeClass('required');
jform_mKGkOJKrGI_required = true; jform_kZREHRfowX_required = true;
} }
jQuery('#jform_medical_turnovers_males').closest('.control-group').hide(); jQuery('#jform_medical_turnovers_males').closest('.control-group').hide();
if (!jform_mKGkOJKIOZ_required) if (!jform_kZREHRfiYR_required)
{ {
updateFieldRequired('medical_turnovers_males',1); updateFieldRequired('medical_turnovers_males',1);
jQuery('#jform_medical_turnovers_males').removeAttr('required'); jQuery('#jform_medical_turnovers_males').removeAttr('required');
jQuery('#jform_medical_turnovers_males').removeAttr('aria-required'); jQuery('#jform_medical_turnovers_males').removeAttr('aria-required');
jQuery('#jform_medical_turnovers_males').removeClass('required'); jQuery('#jform_medical_turnovers_males').removeClass('required');
jform_mKGkOJKIOZ_required = true; jform_kZREHRfiYR_required = true;
} }
jQuery('#jform_sick_leave_females').closest('.control-group').hide(); jQuery('#jform_sick_leave_females').closest('.control-group').hide();
if (!jform_mKGkOJKqxA_required) if (!jform_kZREHRfNDv_required)
{ {
updateFieldRequired('sick_leave_females',1); updateFieldRequired('sick_leave_females',1);
jQuery('#jform_sick_leave_females').removeAttr('required'); jQuery('#jform_sick_leave_females').removeAttr('required');
jQuery('#jform_sick_leave_females').removeAttr('aria-required'); jQuery('#jform_sick_leave_females').removeAttr('aria-required');
jQuery('#jform_sick_leave_females').removeClass('required'); jQuery('#jform_sick_leave_females').removeClass('required');
jform_mKGkOJKqxA_required = true; jform_kZREHRfNDv_required = true;
} }
jQuery('#jform_sick_leave_males').closest('.control-group').hide(); jQuery('#jform_sick_leave_males').closest('.control-group').hide();
if (!jform_mKGkOJKwZw_required) if (!jform_kZREHRfNHz_required)
{ {
updateFieldRequired('sick_leave_males',1); updateFieldRequired('sick_leave_males',1);
jQuery('#jform_sick_leave_males').removeAttr('required'); jQuery('#jform_sick_leave_males').removeAttr('required');
jQuery('#jform_sick_leave_males').removeAttr('aria-required'); jQuery('#jform_sick_leave_males').removeAttr('aria-required');
jQuery('#jform_sick_leave_males').removeClass('required'); jQuery('#jform_sick_leave_males').removeClass('required');
jform_mKGkOJKwZw_required = true; jform_kZREHRfNHz_required = true;
} }
jQuery('#jform_total_healthcare').closest('.control-group').hide(); jQuery('#jform_total_healthcare').closest('.control-group').hide();
if (!jform_mKGkOJKutU_required) if (!jform_kZREHRfEcd_required)
{ {
updateFieldRequired('total_healthcare',1); updateFieldRequired('total_healthcare',1);
jQuery('#jform_total_healthcare').removeAttr('required'); jQuery('#jform_total_healthcare').removeAttr('required');
jQuery('#jform_total_healthcare').removeAttr('aria-required'); jQuery('#jform_total_healthcare').removeAttr('aria-required');
jQuery('#jform_total_healthcare').removeClass('required'); jQuery('#jform_total_healthcare').removeClass('required');
jform_mKGkOJKutU_required = true; jform_kZREHRfEcd_required = true;
} }
} }
} }
// the kvzvhgM function // the qFovEif function
function kvzvhgM(department_kvzvhgM) function qFovEif(department_qFovEif)
{ {
// set the function logic // set the function logic
if (department_kvzvhgM == 1) if (department_qFovEif == 1)
{ {
jQuery('.age_groups_note').closest('.control-group').show(); jQuery('.age_groups_note').closest('.control-group').show();
jQuery('.cause_risk_selection_note').closest('.control-group').show(); jQuery('.cause_risk_selection_note').closest('.control-group').show();

View File

@ -17,38 +17,38 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// Some Global Values // Some Global Values
jform_CXVoNoaTUi_required = false; jform_PBsVlipavG_required = false;
jform_RlScCywppj_required = false; jform_sdAEsHfPfg_required = false;
jform_GRMmOLOHJk_required = false; jform_LwKoEeFnqw_required = false;
jform_lqhjMXyMSm_required = false; jform_wfYKZjPwkr_required = false;
// Initial Script // Initial Script
jQuery(document).ready(function() jQuery(document).ready(function()
{ {
var location_JYStDvN = jQuery("#jform_location input[type='radio']:checked").val(); var location_qtYTlEy = jQuery("#jform_location input[type='radio']:checked").val();
JYStDvN(location_JYStDvN); qtYTlEy(location_qtYTlEy);
var location_VZDPdtL = jQuery("#jform_location input[type='radio']:checked").val(); var location_mpuFgRj = jQuery("#jform_location input[type='radio']:checked").val();
VZDPdtL(location_VZDPdtL); mpuFgRj(location_mpuFgRj);
var type_CXVoNoa = jQuery("#jform_type").val(); var type_PBsVlip = jQuery("#jform_type").val();
CXVoNoa(type_CXVoNoa); PBsVlip(type_PBsVlip);
var type_RlScCyw = jQuery("#jform_type").val(); var type_sdAEsHf = jQuery("#jform_type").val();
RlScCyw(type_RlScCyw); sdAEsHf(type_sdAEsHf);
var type_GRMmOLO = jQuery("#jform_type").val(); var type_LwKoEeF = jQuery("#jform_type").val();
GRMmOLO(type_GRMmOLO); LwKoEeF(type_LwKoEeF);
var target_lqhjMXy = jQuery("#jform_target input[type='radio']:checked").val(); var target_wfYKZjP = jQuery("#jform_target input[type='radio']:checked").val();
lqhjMXy(target_lqhjMXy); wfYKZjP(target_wfYKZjP);
}); });
// the JYStDvN function // the qtYTlEy function
function JYStDvN(location_JYStDvN) function qtYTlEy(location_qtYTlEy)
{ {
// set the function logic // set the function logic
if (location_JYStDvN == 1) if (location_qtYTlEy == 1)
{ {
jQuery('#jform_admin_view').closest('.control-group').show(); jQuery('#jform_admin_view').closest('.control-group').show();
} }
@ -58,11 +58,11 @@ function JYStDvN(location_JYStDvN)
} }
} }
// the VZDPdtL function // the mpuFgRj function
function VZDPdtL(location_VZDPdtL) function mpuFgRj(location_mpuFgRj)
{ {
// set the function logic // set the function logic
if (location_VZDPdtL == 2) if (location_mpuFgRj == 2)
{ {
jQuery('#jform_site_view').closest('.control-group').show(); jQuery('#jform_site_view').closest('.control-group').show();
} }
@ -72,198 +72,198 @@ function VZDPdtL(location_VZDPdtL)
} }
} }
// the CXVoNoa function // the PBsVlip function
function CXVoNoa(type_CXVoNoa) function PBsVlip(type_PBsVlip)
{ {
if (isSet(type_CXVoNoa) && type_CXVoNoa.constructor !== Array) if (isSet(type_PBsVlip) && type_PBsVlip.constructor !== Array)
{ {
var temp_CXVoNoa = type_CXVoNoa; var temp_PBsVlip = type_PBsVlip;
var type_CXVoNoa = []; var type_PBsVlip = [];
type_CXVoNoa.push(temp_CXVoNoa); type_PBsVlip.push(temp_PBsVlip);
} }
else if (!isSet(type_CXVoNoa)) else if (!isSet(type_PBsVlip))
{ {
var type_CXVoNoa = []; var type_PBsVlip = [];
} }
var type = type_CXVoNoa.some(type_CXVoNoa_SomeFunc); var type = type_PBsVlip.some(type_PBsVlip_SomeFunc);
// set this function logic // set this function logic
if (type) if (type)
{ {
jQuery('#jform_url').closest('.control-group').show(); jQuery('#jform_url').closest('.control-group').show();
if (jform_CXVoNoaTUi_required) if (jform_PBsVlipavG_required)
{ {
updateFieldRequired('url',0); updateFieldRequired('url',0);
jQuery('#jform_url').prop('required','required'); jQuery('#jform_url').prop('required','required');
jQuery('#jform_url').attr('aria-required',true); jQuery('#jform_url').attr('aria-required',true);
jQuery('#jform_url').addClass('required'); jQuery('#jform_url').addClass('required');
jform_CXVoNoaTUi_required = false; jform_PBsVlipavG_required = false;
} }
} }
else else
{ {
jQuery('#jform_url').closest('.control-group').hide(); jQuery('#jform_url').closest('.control-group').hide();
if (!jform_CXVoNoaTUi_required) if (!jform_PBsVlipavG_required)
{ {
updateFieldRequired('url',1); updateFieldRequired('url',1);
jQuery('#jform_url').removeAttr('required'); jQuery('#jform_url').removeAttr('required');
jQuery('#jform_url').removeAttr('aria-required'); jQuery('#jform_url').removeAttr('aria-required');
jQuery('#jform_url').removeClass('required'); jQuery('#jform_url').removeClass('required');
jform_CXVoNoaTUi_required = true; jform_PBsVlipavG_required = true;
} }
} }
} }
// the CXVoNoa Some function // the PBsVlip Some function
function type_CXVoNoa_SomeFunc(type_CXVoNoa) function type_PBsVlip_SomeFunc(type_PBsVlip)
{ {
// set the function logic // set the function logic
if (type_CXVoNoa == 3) if (type_PBsVlip == 3)
{ {
return true; return true;
} }
return false; return false;
} }
// the RlScCyw function // the sdAEsHf function
function RlScCyw(type_RlScCyw) function sdAEsHf(type_sdAEsHf)
{ {
if (isSet(type_RlScCyw) && type_RlScCyw.constructor !== Array) if (isSet(type_sdAEsHf) && type_sdAEsHf.constructor !== Array)
{ {
var temp_RlScCyw = type_RlScCyw; var temp_sdAEsHf = type_sdAEsHf;
var type_RlScCyw = []; var type_sdAEsHf = [];
type_RlScCyw.push(temp_RlScCyw); type_sdAEsHf.push(temp_sdAEsHf);
} }
else if (!isSet(type_RlScCyw)) else if (!isSet(type_sdAEsHf))
{ {
var type_RlScCyw = []; var type_sdAEsHf = [];
} }
var type = type_RlScCyw.some(type_RlScCyw_SomeFunc); var type = type_sdAEsHf.some(type_sdAEsHf_SomeFunc);
// set this function logic // set this function logic
if (type) if (type)
{ {
jQuery('#jform_article').closest('.control-group').show(); jQuery('#jform_article').closest('.control-group').show();
if (jform_RlScCywppj_required) if (jform_sdAEsHfPfg_required)
{ {
updateFieldRequired('article',0); updateFieldRequired('article',0);
jQuery('#jform_article').prop('required','required'); jQuery('#jform_article').prop('required','required');
jQuery('#jform_article').attr('aria-required',true); jQuery('#jform_article').attr('aria-required',true);
jQuery('#jform_article').addClass('required'); jQuery('#jform_article').addClass('required');
jform_RlScCywppj_required = false; jform_sdAEsHfPfg_required = false;
} }
} }
else else
{ {
jQuery('#jform_article').closest('.control-group').hide(); jQuery('#jform_article').closest('.control-group').hide();
if (!jform_RlScCywppj_required) if (!jform_sdAEsHfPfg_required)
{ {
updateFieldRequired('article',1); updateFieldRequired('article',1);
jQuery('#jform_article').removeAttr('required'); jQuery('#jform_article').removeAttr('required');
jQuery('#jform_article').removeAttr('aria-required'); jQuery('#jform_article').removeAttr('aria-required');
jQuery('#jform_article').removeClass('required'); jQuery('#jform_article').removeClass('required');
jform_RlScCywppj_required = true; jform_sdAEsHfPfg_required = true;
} }
} }
} }
// the RlScCyw Some function // the sdAEsHf Some function
function type_RlScCyw_SomeFunc(type_RlScCyw) function type_sdAEsHf_SomeFunc(type_sdAEsHf)
{ {
// set the function logic // set the function logic
if (type_RlScCyw == 1) if (type_sdAEsHf == 1)
{ {
return true; return true;
} }
return false; return false;
} }
// the GRMmOLO function // the LwKoEeF function
function GRMmOLO(type_GRMmOLO) function LwKoEeF(type_LwKoEeF)
{ {
if (isSet(type_GRMmOLO) && type_GRMmOLO.constructor !== Array) if (isSet(type_LwKoEeF) && type_LwKoEeF.constructor !== Array)
{ {
var temp_GRMmOLO = type_GRMmOLO; var temp_LwKoEeF = type_LwKoEeF;
var type_GRMmOLO = []; var type_LwKoEeF = [];
type_GRMmOLO.push(temp_GRMmOLO); type_LwKoEeF.push(temp_LwKoEeF);
} }
else if (!isSet(type_GRMmOLO)) else if (!isSet(type_LwKoEeF))
{ {
var type_GRMmOLO = []; var type_LwKoEeF = [];
} }
var type = type_GRMmOLO.some(type_GRMmOLO_SomeFunc); var type = type_LwKoEeF.some(type_LwKoEeF_SomeFunc);
// set this function logic // set this function logic
if (type) if (type)
{ {
jQuery('#jform_content-lbl').closest('.control-group').show(); jQuery('#jform_content-lbl').closest('.control-group').show();
if (jform_GRMmOLOHJk_required) if (jform_LwKoEeFnqw_required)
{ {
updateFieldRequired('content',0); updateFieldRequired('content',0);
jQuery('#jform_content').prop('required','required'); jQuery('#jform_content').prop('required','required');
jQuery('#jform_content').attr('aria-required',true); jQuery('#jform_content').attr('aria-required',true);
jQuery('#jform_content').addClass('required'); jQuery('#jform_content').addClass('required');
jform_GRMmOLOHJk_required = false; jform_LwKoEeFnqw_required = false;
} }
} }
else else
{ {
jQuery('#jform_content-lbl').closest('.control-group').hide(); jQuery('#jform_content-lbl').closest('.control-group').hide();
if (!jform_GRMmOLOHJk_required) if (!jform_LwKoEeFnqw_required)
{ {
updateFieldRequired('content',1); updateFieldRequired('content',1);
jQuery('#jform_content').removeAttr('required'); jQuery('#jform_content').removeAttr('required');
jQuery('#jform_content').removeAttr('aria-required'); jQuery('#jform_content').removeAttr('aria-required');
jQuery('#jform_content').removeClass('required'); jQuery('#jform_content').removeClass('required');
jform_GRMmOLOHJk_required = true; jform_LwKoEeFnqw_required = true;
} }
} }
} }
// the GRMmOLO Some function // the LwKoEeF Some function
function type_GRMmOLO_SomeFunc(type_GRMmOLO) function type_LwKoEeF_SomeFunc(type_LwKoEeF)
{ {
// set the function logic // set the function logic
if (type_GRMmOLO == 2) if (type_LwKoEeF == 2)
{ {
return true; return true;
} }
return false; return false;
} }
// the lqhjMXy function // the wfYKZjP function
function lqhjMXy(target_lqhjMXy) function wfYKZjP(target_wfYKZjP)
{ {
// set the function logic // set the function logic
if (target_lqhjMXy == 1) if (target_wfYKZjP == 1)
{ {
jQuery('#jform_groups').closest('.control-group').show(); jQuery('#jform_groups').closest('.control-group').show();
if (jform_lqhjMXyMSm_required) if (jform_wfYKZjPwkr_required)
{ {
updateFieldRequired('groups',0); updateFieldRequired('groups',0);
jQuery('#jform_groups').prop('required','required'); jQuery('#jform_groups').prop('required','required');
jQuery('#jform_groups').attr('aria-required',true); jQuery('#jform_groups').attr('aria-required',true);
jQuery('#jform_groups').addClass('required'); jQuery('#jform_groups').addClass('required');
jform_lqhjMXyMSm_required = false; jform_wfYKZjPwkr_required = false;
} }
} }
else else
{ {
jQuery('#jform_groups').closest('.control-group').hide(); jQuery('#jform_groups').closest('.control-group').hide();
if (!jform_lqhjMXyMSm_required) if (!jform_wfYKZjPwkr_required)
{ {
updateFieldRequired('groups',1); updateFieldRequired('groups',1);
jQuery('#jform_groups').removeAttr('required'); jQuery('#jform_groups').removeAttr('required');
jQuery('#jform_groups').removeAttr('aria-required'); jQuery('#jform_groups').removeAttr('aria-required');
jQuery('#jform_groups').removeClass('required'); jQuery('#jform_groups').removeClass('required');
jform_lqhjMXyMSm_required = true; jform_wfYKZjPwkr_required = true;
} }
} }
} }

View File

@ -17,58 +17,58 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// Some Global Values // Some Global Values
jform_xKzzDKVdWU_required = false; jform_PLEbHUmNyB_required = false;
jform_gLhYwEkyzs_required = false; jform_PotrAOoulv_required = false;
// Initial Script // Initial Script
jQuery(document).ready(function() jQuery(document).ready(function()
{ {
var type_xKzzDKV = jQuery("#jform_type input[type='radio']:checked").val(); var type_PLEbHUm = jQuery("#jform_type input[type='radio']:checked").val();
xKzzDKV(type_xKzzDKV); PLEbHUm(type_PLEbHUm);
var type_FEoIPnL = jQuery("#jform_type input[type='radio']:checked").val(); var type_LIidPRB = jQuery("#jform_type input[type='radio']:checked").val();
FEoIPnL(type_FEoIPnL); LIidPRB(type_LIidPRB);
var company_gLhYwEk = jQuery("#jform_company").val(); var company_PotrAOo = jQuery("#jform_company").val();
gLhYwEk(company_gLhYwEk); PotrAOo(company_PotrAOo);
}); });
// the xKzzDKV function // the PLEbHUm function
function xKzzDKV(type_xKzzDKV) function PLEbHUm(type_PLEbHUm)
{ {
// set the function logic // set the function logic
if (type_xKzzDKV == 2) if (type_PLEbHUm == 2)
{ {
jQuery('#jform_interventions').closest('.control-group').show(); jQuery('#jform_interventions').closest('.control-group').show();
if (jform_xKzzDKVdWU_required) if (jform_PLEbHUmNyB_required)
{ {
updateFieldRequired('interventions',0); updateFieldRequired('interventions',0);
jQuery('#jform_interventions').prop('required','required'); jQuery('#jform_interventions').prop('required','required');
jQuery('#jform_interventions').attr('aria-required',true); jQuery('#jform_interventions').attr('aria-required',true);
jQuery('#jform_interventions').addClass('required'); jQuery('#jform_interventions').addClass('required');
jform_xKzzDKVdWU_required = false; jform_PLEbHUmNyB_required = false;
} }
} }
else else
{ {
jQuery('#jform_interventions').closest('.control-group').hide(); jQuery('#jform_interventions').closest('.control-group').hide();
if (!jform_xKzzDKVdWU_required) if (!jform_PLEbHUmNyB_required)
{ {
updateFieldRequired('interventions',1); updateFieldRequired('interventions',1);
jQuery('#jform_interventions').removeAttr('required'); jQuery('#jform_interventions').removeAttr('required');
jQuery('#jform_interventions').removeAttr('aria-required'); jQuery('#jform_interventions').removeAttr('aria-required');
jQuery('#jform_interventions').removeClass('required'); jQuery('#jform_interventions').removeClass('required');
jform_xKzzDKVdWU_required = true; jform_PLEbHUmNyB_required = true;
} }
} }
} }
// the FEoIPnL function // the LIidPRB function
function FEoIPnL(type_FEoIPnL) function LIidPRB(type_LIidPRB)
{ {
// set the function logic // set the function logic
if (type_FEoIPnL == 1) if (type_LIidPRB == 1)
{ {
jQuery('#jform_intervention').closest('.control-group').show(); jQuery('#jform_intervention').closest('.control-group').show();
} }
@ -78,55 +78,55 @@ function FEoIPnL(type_FEoIPnL)
} }
} }
// the gLhYwEk function // the PotrAOo function
function gLhYwEk(company_gLhYwEk) function PotrAOo(company_PotrAOo)
{ {
if (isSet(company_gLhYwEk) && company_gLhYwEk.constructor !== Array) if (isSet(company_PotrAOo) && company_PotrAOo.constructor !== Array)
{ {
var temp_gLhYwEk = company_gLhYwEk; var temp_PotrAOo = company_PotrAOo;
var company_gLhYwEk = []; var company_PotrAOo = [];
company_gLhYwEk.push(temp_gLhYwEk); company_PotrAOo.push(temp_PotrAOo);
} }
else if (!isSet(company_gLhYwEk)) else if (!isSet(company_PotrAOo))
{ {
var company_gLhYwEk = []; var company_PotrAOo = [];
} }
var company = company_gLhYwEk.some(company_gLhYwEk_SomeFunc); var company = company_PotrAOo.some(company_PotrAOo_SomeFunc);
// set this function logic // set this function logic
if (company) if (company)
{ {
jQuery('#jform_country').closest('.control-group').show(); jQuery('#jform_country').closest('.control-group').show();
if (jform_gLhYwEkyzs_required) if (jform_PotrAOoulv_required)
{ {
updateFieldRequired('country',0); updateFieldRequired('country',0);
jQuery('#jform_country').prop('required','required'); jQuery('#jform_country').prop('required','required');
jQuery('#jform_country').attr('aria-required',true); jQuery('#jform_country').attr('aria-required',true);
jQuery('#jform_country').addClass('required'); jQuery('#jform_country').addClass('required');
jform_gLhYwEkyzs_required = false; jform_PotrAOoulv_required = false;
} }
} }
else else
{ {
jQuery('#jform_country').closest('.control-group').hide(); jQuery('#jform_country').closest('.control-group').hide();
if (!jform_gLhYwEkyzs_required) if (!jform_PotrAOoulv_required)
{ {
updateFieldRequired('country',1); updateFieldRequired('country',1);
jQuery('#jform_country').removeAttr('required'); jQuery('#jform_country').removeAttr('required');
jQuery('#jform_country').removeAttr('aria-required'); jQuery('#jform_country').removeAttr('aria-required');
jQuery('#jform_country').removeClass('required'); jQuery('#jform_country').removeClass('required');
jform_gLhYwEkyzs_required = true; jform_PotrAOoulv_required = true;
} }
} }
} }
// the gLhYwEk Some function // the PotrAOo Some function
function company_gLhYwEk_SomeFunc(company_gLhYwEk) function company_PotrAOo_SomeFunc(company_PotrAOo)
{ {
// set the function logic // set the function logic
if (company_gLhYwEk == 0) if (company_PotrAOo == 0)
{ {
return true; return true;
} }

View File

@ -17,64 +17,64 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// Some Global Values // Some Global Values
jform_HCncUhorFH_required = false; jform_pBdODibjvD_required = false;
// Initial Script // Initial Script
jQuery(document).ready(function() jQuery(document).ready(function()
{ {
var company_HCncUho = jQuery("#jform_company").val(); var company_pBdODib = jQuery("#jform_company").val();
HCncUho(company_HCncUho); pBdODib(company_pBdODib);
}); });
// the HCncUho function // the pBdODib function
function HCncUho(company_HCncUho) function pBdODib(company_pBdODib)
{ {
if (isSet(company_HCncUho) && company_HCncUho.constructor !== Array) if (isSet(company_pBdODib) && company_pBdODib.constructor !== Array)
{ {
var temp_HCncUho = company_HCncUho; var temp_pBdODib = company_pBdODib;
var company_HCncUho = []; var company_pBdODib = [];
company_HCncUho.push(temp_HCncUho); company_pBdODib.push(temp_pBdODib);
} }
else if (!isSet(company_HCncUho)) else if (!isSet(company_pBdODib))
{ {
var company_HCncUho = []; var company_pBdODib = [];
} }
var company = company_HCncUho.some(company_HCncUho_SomeFunc); var company = company_pBdODib.some(company_pBdODib_SomeFunc);
// set this function logic // set this function logic
if (company) if (company)
{ {
jQuery('#jform_country').closest('.control-group').show(); jQuery('#jform_country').closest('.control-group').show();
if (jform_HCncUhorFH_required) if (jform_pBdODibjvD_required)
{ {
updateFieldRequired('country',0); updateFieldRequired('country',0);
jQuery('#jform_country').prop('required','required'); jQuery('#jform_country').prop('required','required');
jQuery('#jform_country').attr('aria-required',true); jQuery('#jform_country').attr('aria-required',true);
jQuery('#jform_country').addClass('required'); jQuery('#jform_country').addClass('required');
jform_HCncUhorFH_required = false; jform_pBdODibjvD_required = false;
} }
} }
else else
{ {
jQuery('#jform_country').closest('.control-group').hide(); jQuery('#jform_country').closest('.control-group').hide();
if (!jform_HCncUhorFH_required) if (!jform_pBdODibjvD_required)
{ {
updateFieldRequired('country',1); updateFieldRequired('country',1);
jQuery('#jform_country').removeAttr('required'); jQuery('#jform_country').removeAttr('required');
jQuery('#jform_country').removeAttr('aria-required'); jQuery('#jform_country').removeAttr('aria-required');
jQuery('#jform_country').removeClass('required'); jQuery('#jform_country').removeClass('required');
jform_HCncUhorFH_required = true; jform_pBdODibjvD_required = true;
} }
} }
} }
// the HCncUho Some function // the pBdODib Some function
function company_HCncUho_SomeFunc(company_HCncUho) function company_pBdODib_SomeFunc(company_pBdODib)
{ {
// set the function logic // set the function logic
if (company_HCncUho == 0) if (company_pBdODib == 0)
{ {
return true; return true;
} }

View File

@ -95,7 +95,7 @@ class CostbenefitprojectionModelService_provider extends JModelAdmin
$item->tags->getTagIds($item->id, 'com_costbenefitprojection.service_provider'); $item->tags->getTagIds($item->id, 'com_costbenefitprojection.service_provider');
} }
} }
$this->service_providerxdsw = $item->id; $this->service_providerxmyn = $item->id;
return $item; return $item;
} }
@ -105,7 +105,7 @@ class CostbenefitprojectionModelService_provider extends JModelAdmin
* *
* @return mixed An array of data items on success, false on failure. * @return mixed An array of data items on success, false on failure.
*/ */
public function getYvacompanies() public function getTvocompanies()
{ {
// Get the user object. // Get the user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -148,15 +148,15 @@ class CostbenefitprojectionModelService_provider extends JModelAdmin
$query->select($db->quoteName('i.user','service_provider_user')); $query->select($db->quoteName('i.user','service_provider_user'));
$query->join('LEFT', $db->quoteName('#__costbenefitprojection_service_provider', 'i') . ' ON (' . $db->quoteName('a.service_provider') . ' = ' . $db->quoteName('i.id') . ')'); $query->join('LEFT', $db->quoteName('#__costbenefitprojection_service_provider', 'i') . ' ON (' . $db->quoteName('a.service_provider') . ' = ' . $db->quoteName('i.id') . ')');
// Filter by service_providerxdsw global. // Filter by service_providerxmyn global.
$service_providerxdsw = $this->service_providerxdsw; $service_providerxmyn = $this->service_providerxmyn;
if (is_numeric($service_providerxdsw )) if (is_numeric($service_providerxmyn ))
{ {
$query->where('a.service_provider = ' . (int) $service_providerxdsw ); $query->where('a.service_provider = ' . (int) $service_providerxmyn );
} }
elseif (is_string($service_providerxdsw)) elseif (is_string($service_providerxmyn))
{ {
$query->where('a.service_provider = ' . $db->quote($service_providerxdsw)); $query->where('a.service_provider = ' . $db->quote($service_providerxmyn));
} }
else else
{ {
@ -211,9 +211,9 @@ class CostbenefitprojectionModelService_provider extends JModelAdmin
foreach ($items as $nr => &$item) foreach ($items as $nr => &$item)
{ {
// convert department // convert department
$item->department = $this->selectionTranslationYvacompanies($item->department, 'department'); $item->department = $this->selectionTranslationTvocompanies($item->department, 'department');
// convert per // convert per
$item->per = $this->selectionTranslationYvacompanies($item->per, 'per'); $item->per = $this->selectionTranslationTvocompanies($item->per, 'per');
} }
} }
@ -227,7 +227,7 @@ class CostbenefitprojectionModelService_provider extends JModelAdmin
* *
* @return translatable string * @return translatable string
*/ */
public function selectionTranslationYvacompanies($value,$name) public function selectionTranslationTvocompanies($value,$name)
{ {
// Array of department language strings // Array of department language strings
if ($name == 'department') if ($name == 'department')

View File

@ -141,33 +141,33 @@ $componentParams = JComponentHelper::getParams('com_costbenefitprojection');
<script type="text/javascript"> <script type="text/javascript">
// #jform_department listeners for department_mKGkOJK function // #jform_department listeners for department_kZREHRf function
jQuery('#jform_department').on('keyup',function() jQuery('#jform_department').on('keyup',function()
{ {
var department_mKGkOJK = jQuery("#jform_department input[type='radio']:checked").val(); var department_kZREHRf = jQuery("#jform_department input[type='radio']:checked").val();
mKGkOJK(department_mKGkOJK); kZREHRf(department_kZREHRf);
}); });
jQuery('#adminForm').on('change', '#jform_department',function (e) jQuery('#adminForm').on('change', '#jform_department',function (e)
{ {
e.preventDefault(); e.preventDefault();
var department_mKGkOJK = jQuery("#jform_department input[type='radio']:checked").val(); var department_kZREHRf = jQuery("#jform_department input[type='radio']:checked").val();
mKGkOJK(department_mKGkOJK); kZREHRf(department_kZREHRf);
}); });
// #jform_department listeners for department_kvzvhgM function // #jform_department listeners for department_qFovEif function
jQuery('#jform_department').on('keyup',function() jQuery('#jform_department').on('keyup',function()
{ {
var department_kvzvhgM = jQuery("#jform_department input[type='radio']:checked").val(); var department_qFovEif = jQuery("#jform_department input[type='radio']:checked").val();
kvzvhgM(department_kvzvhgM); qFovEif(department_qFovEif);
}); });
jQuery('#adminForm').on('change', '#jform_department',function (e) jQuery('#adminForm').on('change', '#jform_department',function (e)
{ {
e.preventDefault(); e.preventDefault();
var department_kvzvhgM = jQuery("#jform_department input[type='radio']:checked").val(); var department_qFovEif = jQuery("#jform_department input[type='radio']:checked").val();
kvzvhgM(department_kvzvhgM); qFovEif(department_qFovEif);
}); });

View File

@ -65,10 +65,10 @@ class CostbenefitprojectionViewCompany extends JViewLegacy
} }
// Get Linked view data // Get Linked view data
$this->vqpscaling_factors = $this->get('Vqpscaling_factors'); $this->obqscaling_factors = $this->get('Obqscaling_factors');
// Get Linked view data // Get Linked view data
$this->dghinterventions = $this->get('Dghinterventions'); $this->ledinterventions = $this->get('Ledinterventions');
// Set the toolbar // Set the toolbar
$this->addToolBar(); $this->addToolBar();

View File

@ -65,13 +65,13 @@ class CostbenefitprojectionViewCountry extends JViewLegacy
} }
// Get Linked view data // Get Linked view data
$this->phminterventions = $this->get('Phminterventions'); $this->eyjinterventions = $this->get('Eyjinterventions');
// Get Linked view data // Get Linked view data
$this->dxrservice_providers = $this->get('Dxrservice_providers'); $this->iqaservice_providers = $this->get('Iqaservice_providers');
// Get Linked view data // Get Linked view data
$this->odrcompanies = $this->get('Odrcompanies'); $this->vrvcompanies = $this->get('Vrvcompanies');
// Set the toolbar // Set the toolbar
$this->addToolBar(); $this->addToolBar();

View File

@ -96,93 +96,93 @@ $componentParams = JComponentHelper::getParams('com_costbenefitprojection');
<script type="text/javascript"> <script type="text/javascript">
// #jform_location listeners for location_JYStDvN function // #jform_location listeners for location_qtYTlEy function
jQuery('#jform_location').on('keyup',function() jQuery('#jform_location').on('keyup',function()
{ {
var location_JYStDvN = jQuery("#jform_location input[type='radio']:checked").val(); var location_qtYTlEy = jQuery("#jform_location input[type='radio']:checked").val();
JYStDvN(location_JYStDvN); qtYTlEy(location_qtYTlEy);
}); });
jQuery('#adminForm').on('change', '#jform_location',function (e) jQuery('#adminForm').on('change', '#jform_location',function (e)
{ {
e.preventDefault(); e.preventDefault();
var location_JYStDvN = jQuery("#jform_location input[type='radio']:checked").val(); var location_qtYTlEy = jQuery("#jform_location input[type='radio']:checked").val();
JYStDvN(location_JYStDvN); qtYTlEy(location_qtYTlEy);
}); });
// #jform_location listeners for location_VZDPdtL function // #jform_location listeners for location_mpuFgRj function
jQuery('#jform_location').on('keyup',function() jQuery('#jform_location').on('keyup',function()
{ {
var location_VZDPdtL = jQuery("#jform_location input[type='radio']:checked").val(); var location_mpuFgRj = jQuery("#jform_location input[type='radio']:checked").val();
VZDPdtL(location_VZDPdtL); mpuFgRj(location_mpuFgRj);
}); });
jQuery('#adminForm').on('change', '#jform_location',function (e) jQuery('#adminForm').on('change', '#jform_location',function (e)
{ {
e.preventDefault(); e.preventDefault();
var location_VZDPdtL = jQuery("#jform_location input[type='radio']:checked").val(); var location_mpuFgRj = jQuery("#jform_location input[type='radio']:checked").val();
VZDPdtL(location_VZDPdtL); mpuFgRj(location_mpuFgRj);
}); });
// #jform_type listeners for type_CXVoNoa function // #jform_type listeners for type_PBsVlip function
jQuery('#jform_type').on('keyup',function() jQuery('#jform_type').on('keyup',function()
{ {
var type_CXVoNoa = jQuery("#jform_type").val(); var type_PBsVlip = jQuery("#jform_type").val();
CXVoNoa(type_CXVoNoa); PBsVlip(type_PBsVlip);
}); });
jQuery('#adminForm').on('change', '#jform_type',function (e) jQuery('#adminForm').on('change', '#jform_type',function (e)
{ {
e.preventDefault(); e.preventDefault();
var type_CXVoNoa = jQuery("#jform_type").val(); var type_PBsVlip = jQuery("#jform_type").val();
CXVoNoa(type_CXVoNoa); PBsVlip(type_PBsVlip);
}); });
// #jform_type listeners for type_RlScCyw function // #jform_type listeners for type_sdAEsHf function
jQuery('#jform_type').on('keyup',function() jQuery('#jform_type').on('keyup',function()
{ {
var type_RlScCyw = jQuery("#jform_type").val(); var type_sdAEsHf = jQuery("#jform_type").val();
RlScCyw(type_RlScCyw); sdAEsHf(type_sdAEsHf);
}); });
jQuery('#adminForm').on('change', '#jform_type',function (e) jQuery('#adminForm').on('change', '#jform_type',function (e)
{ {
e.preventDefault(); e.preventDefault();
var type_RlScCyw = jQuery("#jform_type").val(); var type_sdAEsHf = jQuery("#jform_type").val();
RlScCyw(type_RlScCyw); sdAEsHf(type_sdAEsHf);
}); });
// #jform_type listeners for type_GRMmOLO function // #jform_type listeners for type_LwKoEeF function
jQuery('#jform_type').on('keyup',function() jQuery('#jform_type').on('keyup',function()
{ {
var type_GRMmOLO = jQuery("#jform_type").val(); var type_LwKoEeF = jQuery("#jform_type").val();
GRMmOLO(type_GRMmOLO); LwKoEeF(type_LwKoEeF);
}); });
jQuery('#adminForm').on('change', '#jform_type',function (e) jQuery('#adminForm').on('change', '#jform_type',function (e)
{ {
e.preventDefault(); e.preventDefault();
var type_GRMmOLO = jQuery("#jform_type").val(); var type_LwKoEeF = jQuery("#jform_type").val();
GRMmOLO(type_GRMmOLO); LwKoEeF(type_LwKoEeF);
}); });
// #jform_target listeners for target_lqhjMXy function // #jform_target listeners for target_wfYKZjP function
jQuery('#jform_target').on('keyup',function() jQuery('#jform_target').on('keyup',function()
{ {
var target_lqhjMXy = jQuery("#jform_target input[type='radio']:checked").val(); var target_wfYKZjP = jQuery("#jform_target input[type='radio']:checked").val();
lqhjMXy(target_lqhjMXy); wfYKZjP(target_wfYKZjP);
}); });
jQuery('#adminForm').on('change', '#jform_target',function (e) jQuery('#adminForm').on('change', '#jform_target',function (e)
{ {
e.preventDefault(); e.preventDefault();
var target_lqhjMXy = jQuery("#jform_target input[type='radio']:checked").val(); var target_wfYKZjP = jQuery("#jform_target input[type='radio']:checked").val();
lqhjMXy(target_lqhjMXy); wfYKZjP(target_wfYKZjP);
}); });

View File

@ -103,48 +103,48 @@ $componentParams = JComponentHelper::getParams('com_costbenefitprojection');
<script type="text/javascript"> <script type="text/javascript">
// #jform_type listeners for type_xKzzDKV function // #jform_type listeners for type_PLEbHUm function
jQuery('#jform_type').on('keyup',function() jQuery('#jform_type').on('keyup',function()
{ {
var type_xKzzDKV = jQuery("#jform_type input[type='radio']:checked").val(); var type_PLEbHUm = jQuery("#jform_type input[type='radio']:checked").val();
xKzzDKV(type_xKzzDKV); PLEbHUm(type_PLEbHUm);
}); });
jQuery('#adminForm').on('change', '#jform_type',function (e) jQuery('#adminForm').on('change', '#jform_type',function (e)
{ {
e.preventDefault(); e.preventDefault();
var type_xKzzDKV = jQuery("#jform_type input[type='radio']:checked").val(); var type_PLEbHUm = jQuery("#jform_type input[type='radio']:checked").val();
xKzzDKV(type_xKzzDKV); PLEbHUm(type_PLEbHUm);
}); });
// #jform_type listeners for type_FEoIPnL function // #jform_type listeners for type_LIidPRB function
jQuery('#jform_type').on('keyup',function() jQuery('#jform_type').on('keyup',function()
{ {
var type_FEoIPnL = jQuery("#jform_type input[type='radio']:checked").val(); var type_LIidPRB = jQuery("#jform_type input[type='radio']:checked").val();
FEoIPnL(type_FEoIPnL); LIidPRB(type_LIidPRB);
}); });
jQuery('#adminForm').on('change', '#jform_type',function (e) jQuery('#adminForm').on('change', '#jform_type',function (e)
{ {
e.preventDefault(); e.preventDefault();
var type_FEoIPnL = jQuery("#jform_type input[type='radio']:checked").val(); var type_LIidPRB = jQuery("#jform_type input[type='radio']:checked").val();
FEoIPnL(type_FEoIPnL); LIidPRB(type_LIidPRB);
}); });
// #jform_company listeners for company_gLhYwEk function // #jform_company listeners for company_PotrAOo function
jQuery('#jform_company').on('keyup',function() jQuery('#jform_company').on('keyup',function()
{ {
var company_gLhYwEk = jQuery("#jform_company").val(); var company_PotrAOo = jQuery("#jform_company").val();
gLhYwEk(company_gLhYwEk); PotrAOo(company_PotrAOo);
}); });
jQuery('#adminForm').on('change', '#jform_company',function (e) jQuery('#adminForm').on('change', '#jform_company',function (e)
{ {
e.preventDefault(); e.preventDefault();
var company_gLhYwEk = jQuery("#jform_company").val(); var company_PotrAOo = jQuery("#jform_company").val();
gLhYwEk(company_gLhYwEk); PotrAOo(company_PotrAOo);
}); });

View File

@ -88,18 +88,18 @@ $componentParams = JComponentHelper::getParams('com_costbenefitprojection');
<script type="text/javascript"> <script type="text/javascript">
// #jform_company listeners for company_HCncUho function // #jform_company listeners for company_pBdODib function
jQuery('#jform_company').on('keyup',function() jQuery('#jform_company').on('keyup',function()
{ {
var company_HCncUho = jQuery("#jform_company").val(); var company_pBdODib = jQuery("#jform_company").val();
HCncUho(company_HCncUho); pBdODib(company_pBdODib);
}); });
jQuery('#adminForm').on('change', '#jform_company',function (e) jQuery('#adminForm').on('change', '#jform_company',function (e)
{ {
e.preventDefault(); e.preventDefault();
var company_HCncUho = jQuery("#jform_company").val(); var company_pBdODib = jQuery("#jform_company").val();
HCncUho(company_HCncUho); pBdODib(company_pBdODib);
}); });

View File

@ -65,7 +65,7 @@ class CostbenefitprojectionViewService_provider extends JViewLegacy
} }
// Get Linked view data // Get Linked view data
$this->yvacompanies = $this->get('Yvacompanies'); $this->tvocompanies = $this->get('Tvocompanies');
// Set the toolbar // Set the toolbar
$this->addToolBar(); $this->addToolBar();

View File

@ -22,7 +22,7 @@
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// set the defaults // set the defaults
$items = $displayData->dghinterventions; $items = $displayData->ledinterventions;
$user = JFactory::getUser(); $user = JFactory::getUser();
$id = $displayData->item->id; $id = $displayData->item->id;
$edit = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit"; $edit = "index.php?option=com_costbenefitprojection&view=interventions&task=intervention.edit";

View File

@ -22,7 +22,7 @@
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// set the defaults // set the defaults
$items = $displayData->vqpscaling_factors; $items = $displayData->obqscaling_factors;
$user = JFactory::getUser(); $user = JFactory::getUser();
$id = $displayData->item->id; $id = $displayData->item->id;
$edit = "index.php?option=com_costbenefitprojection&view=scaling_factors&task=scaling_factor.edit"; $edit = "index.php?option=com_costbenefitprojection&view=scaling_factors&task=scaling_factor.edit";

View File

@ -154,8 +154,8 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
$item->tags->getTagIds($item->id, 'com_costbenefitprojection.company'); $item->tags->getTagIds($item->id, 'com_costbenefitprojection.company');
} }
} }
$this->companyumdn = $item->id; $this->companybxoc = $item->id;
$this->companynige = $item->id; $this->companyhojs = $item->id;
return $item; return $item;
} }
@ -165,7 +165,7 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
* *
* @return mixed An array of data items on success, false on failure. * @return mixed An array of data items on success, false on failure.
*/ */
public function getVqpscaling_factors() public function getObqscaling_factors()
{ {
// Get the user object. // Get the user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -204,15 +204,15 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
$query->select($db->quoteName('h.name','company_name')); $query->select($db->quoteName('h.name','company_name'));
$query->join('LEFT', $db->quoteName('#__costbenefitprojection_company', 'h') . ' ON (' . $db->quoteName('a.company') . ' = ' . $db->quoteName('h.id') . ')'); $query->join('LEFT', $db->quoteName('#__costbenefitprojection_company', 'h') . ' ON (' . $db->quoteName('a.company') . ' = ' . $db->quoteName('h.id') . ')');
// Filter by companyumdn global. // Filter by companybxoc global.
$companyumdn = $this->companyumdn; $companybxoc = $this->companybxoc;
if (is_numeric($companyumdn )) if (is_numeric($companybxoc ))
{ {
$query->where('a.company = ' . (int) $companyumdn ); $query->where('a.company = ' . (int) $companybxoc );
} }
elseif (is_string($companyumdn)) elseif (is_string($companybxoc))
{ {
$query->where('a.company = ' . $db->quote($companyumdn)); $query->where('a.company = ' . $db->quote($companybxoc));
} }
else else
{ {
@ -255,7 +255,7 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
* *
* @return mixed An array of data items on success, false on failure. * @return mixed An array of data items on success, false on failure.
*/ */
public function getDghinterventions() public function getLedinterventions()
{ {
// Get the user object. // Get the user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -290,15 +290,15 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
$query->select($db->quoteName('g.name','company_name')); $query->select($db->quoteName('g.name','company_name'));
$query->join('LEFT', $db->quoteName('#__costbenefitprojection_company', 'g') . ' ON (' . $db->quoteName('a.company') . ' = ' . $db->quoteName('g.id') . ')'); $query->join('LEFT', $db->quoteName('#__costbenefitprojection_company', 'g') . ' ON (' . $db->quoteName('a.company') . ' = ' . $db->quoteName('g.id') . ')');
// Filter by companynige global. // Filter by companyhojs global.
$companynige = $this->companynige; $companyhojs = $this->companyhojs;
if (is_numeric($companynige )) if (is_numeric($companyhojs ))
{ {
$query->where('a.company = ' . (int) $companynige ); $query->where('a.company = ' . (int) $companyhojs );
} }
elseif (is_string($companynige)) elseif (is_string($companyhojs))
{ {
$query->where('a.company = ' . $db->quote($companynige)); $query->where('a.company = ' . $db->quote($companyhojs));
} }
else else
{ {
@ -351,7 +351,7 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
foreach ($items as $nr => &$item) foreach ($items as $nr => &$item)
{ {
// convert type // convert type
$item->type = $this->selectionTranslationDghinterventions($item->type, 'type'); $item->type = $this->selectionTranslationLedinterventions($item->type, 'type');
} }
} }
@ -365,7 +365,7 @@ class CostbenefitprojectionModelCompany extends JModelAdmin
* *
* @return translatable string * @return translatable string
*/ */
public function selectionTranslationDghinterventions($value,$name) public function selectionTranslationLedinterventions($value,$name)
{ {
// Array of type language strings // Array of type language strings
if ($name == 'type') if ($name == 'type')

View File

@ -17,178 +17,178 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// Some Global Values // Some Global Values
jform_mKGkOJKBNP_required = false; jform_kZREHRfabo_required = false;
jform_mKGkOJKvVz_required = false; jform_kZREHRfdSJ_required = false;
jform_mKGkOJKrGI_required = false; jform_kZREHRfowX_required = false;
jform_mKGkOJKIOZ_required = false; jform_kZREHRfiYR_required = false;
jform_mKGkOJKqxA_required = false; jform_kZREHRfNDv_required = false;
jform_mKGkOJKwZw_required = false; jform_kZREHRfNHz_required = false;
jform_mKGkOJKutU_required = false; jform_kZREHRfEcd_required = false;
// Initial Script // Initial Script
jQuery(document).ready(function() jQuery(document).ready(function()
{ {
var department_mKGkOJK = jQuery("#jform_department input[type='radio']:checked").val(); var department_kZREHRf = jQuery("#jform_department input[type='radio']:checked").val();
mKGkOJK(department_mKGkOJK); kZREHRf(department_kZREHRf);
var department_kvzvhgM = jQuery("#jform_department input[type='radio']:checked").val(); var department_qFovEif = jQuery("#jform_department input[type='radio']:checked").val();
kvzvhgM(department_kvzvhgM); qFovEif(department_qFovEif);
}); });
// the mKGkOJK function // the kZREHRf function
function mKGkOJK(department_mKGkOJK) function kZREHRf(department_kZREHRf)
{ {
// set the function logic // set the function logic
if (department_mKGkOJK == 2) if (department_kZREHRf == 2)
{ {
jQuery('#jform_causesrisks').closest('.control-group').show(); jQuery('#jform_causesrisks').closest('.control-group').show();
if (jform_mKGkOJKBNP_required) if (jform_kZREHRfabo_required)
{ {
updateFieldRequired('causesrisks',0); updateFieldRequired('causesrisks',0);
jQuery('#jform_causesrisks').prop('required','required'); jQuery('#jform_causesrisks').prop('required','required');
jQuery('#jform_causesrisks').attr('aria-required',true); jQuery('#jform_causesrisks').attr('aria-required',true);
jQuery('#jform_causesrisks').addClass('required'); jQuery('#jform_causesrisks').addClass('required');
jform_mKGkOJKBNP_required = false; jform_kZREHRfabo_required = false;
} }
jQuery('#jform_percentfemale').closest('.control-group').show(); jQuery('#jform_percentfemale').closest('.control-group').show();
jQuery('#jform_percentmale').closest('.control-group').show(); jQuery('#jform_percentmale').closest('.control-group').show();
jQuery('#jform_productivity_losses').closest('.control-group').show(); jQuery('#jform_productivity_losses').closest('.control-group').show();
if (jform_mKGkOJKvVz_required) if (jform_kZREHRfdSJ_required)
{ {
updateFieldRequired('productivity_losses',0); updateFieldRequired('productivity_losses',0);
jQuery('#jform_productivity_losses').prop('required','required'); jQuery('#jform_productivity_losses').prop('required','required');
jQuery('#jform_productivity_losses').attr('aria-required',true); jQuery('#jform_productivity_losses').attr('aria-required',true);
jQuery('#jform_productivity_losses').addClass('required'); jQuery('#jform_productivity_losses').addClass('required');
jform_mKGkOJKvVz_required = false; jform_kZREHRfdSJ_required = false;
} }
jQuery('#jform_medical_turnovers_females').closest('.control-group').show(); jQuery('#jform_medical_turnovers_females').closest('.control-group').show();
if (jform_mKGkOJKrGI_required) if (jform_kZREHRfowX_required)
{ {
updateFieldRequired('medical_turnovers_females',0); updateFieldRequired('medical_turnovers_females',0);
jQuery('#jform_medical_turnovers_females').prop('required','required'); jQuery('#jform_medical_turnovers_females').prop('required','required');
jQuery('#jform_medical_turnovers_females').attr('aria-required',true); jQuery('#jform_medical_turnovers_females').attr('aria-required',true);
jQuery('#jform_medical_turnovers_females').addClass('required'); jQuery('#jform_medical_turnovers_females').addClass('required');
jform_mKGkOJKrGI_required = false; jform_kZREHRfowX_required = false;
} }
jQuery('#jform_medical_turnovers_males').closest('.control-group').show(); jQuery('#jform_medical_turnovers_males').closest('.control-group').show();
if (jform_mKGkOJKIOZ_required) if (jform_kZREHRfiYR_required)
{ {
updateFieldRequired('medical_turnovers_males',0); updateFieldRequired('medical_turnovers_males',0);
jQuery('#jform_medical_turnovers_males').prop('required','required'); jQuery('#jform_medical_turnovers_males').prop('required','required');
jQuery('#jform_medical_turnovers_males').attr('aria-required',true); jQuery('#jform_medical_turnovers_males').attr('aria-required',true);
jQuery('#jform_medical_turnovers_males').addClass('required'); jQuery('#jform_medical_turnovers_males').addClass('required');
jform_mKGkOJKIOZ_required = false; jform_kZREHRfiYR_required = false;
} }
jQuery('#jform_sick_leave_females').closest('.control-group').show(); jQuery('#jform_sick_leave_females').closest('.control-group').show();
if (jform_mKGkOJKqxA_required) if (jform_kZREHRfNDv_required)
{ {
updateFieldRequired('sick_leave_females',0); updateFieldRequired('sick_leave_females',0);
jQuery('#jform_sick_leave_females').prop('required','required'); jQuery('#jform_sick_leave_females').prop('required','required');
jQuery('#jform_sick_leave_females').attr('aria-required',true); jQuery('#jform_sick_leave_females').attr('aria-required',true);
jQuery('#jform_sick_leave_females').addClass('required'); jQuery('#jform_sick_leave_females').addClass('required');
jform_mKGkOJKqxA_required = false; jform_kZREHRfNDv_required = false;
} }
jQuery('#jform_sick_leave_males').closest('.control-group').show(); jQuery('#jform_sick_leave_males').closest('.control-group').show();
if (jform_mKGkOJKwZw_required) if (jform_kZREHRfNHz_required)
{ {
updateFieldRequired('sick_leave_males',0); updateFieldRequired('sick_leave_males',0);
jQuery('#jform_sick_leave_males').prop('required','required'); jQuery('#jform_sick_leave_males').prop('required','required');
jQuery('#jform_sick_leave_males').attr('aria-required',true); jQuery('#jform_sick_leave_males').attr('aria-required',true);
jQuery('#jform_sick_leave_males').addClass('required'); jQuery('#jform_sick_leave_males').addClass('required');
jform_mKGkOJKwZw_required = false; jform_kZREHRfNHz_required = false;
} }
jQuery('#jform_total_healthcare').closest('.control-group').show(); jQuery('#jform_total_healthcare').closest('.control-group').show();
if (jform_mKGkOJKutU_required) if (jform_kZREHRfEcd_required)
{ {
updateFieldRequired('total_healthcare',0); updateFieldRequired('total_healthcare',0);
jQuery('#jform_total_healthcare').prop('required','required'); jQuery('#jform_total_healthcare').prop('required','required');
jQuery('#jform_total_healthcare').attr('aria-required',true); jQuery('#jform_total_healthcare').attr('aria-required',true);
jQuery('#jform_total_healthcare').addClass('required'); jQuery('#jform_total_healthcare').addClass('required');
jform_mKGkOJKutU_required = false; jform_kZREHRfEcd_required = false;
} }
} }
else else
{ {
jQuery('#jform_causesrisks').closest('.control-group').hide(); jQuery('#jform_causesrisks').closest('.control-group').hide();
if (!jform_mKGkOJKBNP_required) if (!jform_kZREHRfabo_required)
{ {
updateFieldRequired('causesrisks',1); updateFieldRequired('causesrisks',1);
jQuery('#jform_causesrisks').removeAttr('required'); jQuery('#jform_causesrisks').removeAttr('required');
jQuery('#jform_causesrisks').removeAttr('aria-required'); jQuery('#jform_causesrisks').removeAttr('aria-required');
jQuery('#jform_causesrisks').removeClass('required'); jQuery('#jform_causesrisks').removeClass('required');
jform_mKGkOJKBNP_required = true; jform_kZREHRfabo_required = true;
} }
jQuery('#jform_percentfemale').closest('.control-group').hide(); jQuery('#jform_percentfemale').closest('.control-group').hide();
jQuery('#jform_percentmale').closest('.control-group').hide(); jQuery('#jform_percentmale').closest('.control-group').hide();
jQuery('#jform_productivity_losses').closest('.control-group').hide(); jQuery('#jform_productivity_losses').closest('.control-group').hide();
if (!jform_mKGkOJKvVz_required) if (!jform_kZREHRfdSJ_required)
{ {
updateFieldRequired('productivity_losses',1); updateFieldRequired('productivity_losses',1);
jQuery('#jform_productivity_losses').removeAttr('required'); jQuery('#jform_productivity_losses').removeAttr('required');
jQuery('#jform_productivity_losses').removeAttr('aria-required'); jQuery('#jform_productivity_losses').removeAttr('aria-required');
jQuery('#jform_productivity_losses').removeClass('required'); jQuery('#jform_productivity_losses').removeClass('required');
jform_mKGkOJKvVz_required = true; jform_kZREHRfdSJ_required = true;
} }
jQuery('#jform_medical_turnovers_females').closest('.control-group').hide(); jQuery('#jform_medical_turnovers_females').closest('.control-group').hide();
if (!jform_mKGkOJKrGI_required) if (!jform_kZREHRfowX_required)
{ {
updateFieldRequired('medical_turnovers_females',1); updateFieldRequired('medical_turnovers_females',1);
jQuery('#jform_medical_turnovers_females').removeAttr('required'); jQuery('#jform_medical_turnovers_females').removeAttr('required');
jQuery('#jform_medical_turnovers_females').removeAttr('aria-required'); jQuery('#jform_medical_turnovers_females').removeAttr('aria-required');
jQuery('#jform_medical_turnovers_females').removeClass('required'); jQuery('#jform_medical_turnovers_females').removeClass('required');
jform_mKGkOJKrGI_required = true; jform_kZREHRfowX_required = true;
} }
jQuery('#jform_medical_turnovers_males').closest('.control-group').hide(); jQuery('#jform_medical_turnovers_males').closest('.control-group').hide();
if (!jform_mKGkOJKIOZ_required) if (!jform_kZREHRfiYR_required)
{ {
updateFieldRequired('medical_turnovers_males',1); updateFieldRequired('medical_turnovers_males',1);
jQuery('#jform_medical_turnovers_males').removeAttr('required'); jQuery('#jform_medical_turnovers_males').removeAttr('required');
jQuery('#jform_medical_turnovers_males').removeAttr('aria-required'); jQuery('#jform_medical_turnovers_males').removeAttr('aria-required');
jQuery('#jform_medical_turnovers_males').removeClass('required'); jQuery('#jform_medical_turnovers_males').removeClass('required');
jform_mKGkOJKIOZ_required = true; jform_kZREHRfiYR_required = true;
} }
jQuery('#jform_sick_leave_females').closest('.control-group').hide(); jQuery('#jform_sick_leave_females').closest('.control-group').hide();
if (!jform_mKGkOJKqxA_required) if (!jform_kZREHRfNDv_required)
{ {
updateFieldRequired('sick_leave_females',1); updateFieldRequired('sick_leave_females',1);
jQuery('#jform_sick_leave_females').removeAttr('required'); jQuery('#jform_sick_leave_females').removeAttr('required');
jQuery('#jform_sick_leave_females').removeAttr('aria-required'); jQuery('#jform_sick_leave_females').removeAttr('aria-required');
jQuery('#jform_sick_leave_females').removeClass('required'); jQuery('#jform_sick_leave_females').removeClass('required');
jform_mKGkOJKqxA_required = true; jform_kZREHRfNDv_required = true;
} }
jQuery('#jform_sick_leave_males').closest('.control-group').hide(); jQuery('#jform_sick_leave_males').closest('.control-group').hide();
if (!jform_mKGkOJKwZw_required) if (!jform_kZREHRfNHz_required)
{ {
updateFieldRequired('sick_leave_males',1); updateFieldRequired('sick_leave_males',1);
jQuery('#jform_sick_leave_males').removeAttr('required'); jQuery('#jform_sick_leave_males').removeAttr('required');
jQuery('#jform_sick_leave_males').removeAttr('aria-required'); jQuery('#jform_sick_leave_males').removeAttr('aria-required');
jQuery('#jform_sick_leave_males').removeClass('required'); jQuery('#jform_sick_leave_males').removeClass('required');
jform_mKGkOJKwZw_required = true; jform_kZREHRfNHz_required = true;
} }
jQuery('#jform_total_healthcare').closest('.control-group').hide(); jQuery('#jform_total_healthcare').closest('.control-group').hide();
if (!jform_mKGkOJKutU_required) if (!jform_kZREHRfEcd_required)
{ {
updateFieldRequired('total_healthcare',1); updateFieldRequired('total_healthcare',1);
jQuery('#jform_total_healthcare').removeAttr('required'); jQuery('#jform_total_healthcare').removeAttr('required');
jQuery('#jform_total_healthcare').removeAttr('aria-required'); jQuery('#jform_total_healthcare').removeAttr('aria-required');
jQuery('#jform_total_healthcare').removeClass('required'); jQuery('#jform_total_healthcare').removeClass('required');
jform_mKGkOJKutU_required = true; jform_kZREHRfEcd_required = true;
} }
} }
} }
// the kvzvhgM function // the qFovEif function
function kvzvhgM(department_kvzvhgM) function qFovEif(department_qFovEif)
{ {
// set the function logic // set the function logic
if (department_kvzvhgM == 1) if (department_qFovEif == 1)
{ {
jQuery('.age_groups_note').closest('.control-group').show(); jQuery('.age_groups_note').closest('.control-group').show();
jQuery('.cause_risk_selection_note').closest('.control-group').show(); jQuery('.cause_risk_selection_note').closest('.control-group').show();

View File

@ -17,58 +17,58 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// Some Global Values // Some Global Values
jform_xKzzDKVdWU_required = false; jform_PLEbHUmNyB_required = false;
jform_gLhYwEkyzs_required = false; jform_PotrAOoulv_required = false;
// Initial Script // Initial Script
jQuery(document).ready(function() jQuery(document).ready(function()
{ {
var type_xKzzDKV = jQuery("#jform_type input[type='radio']:checked").val(); var type_PLEbHUm = jQuery("#jform_type input[type='radio']:checked").val();
xKzzDKV(type_xKzzDKV); PLEbHUm(type_PLEbHUm);
var type_FEoIPnL = jQuery("#jform_type input[type='radio']:checked").val(); var type_LIidPRB = jQuery("#jform_type input[type='radio']:checked").val();
FEoIPnL(type_FEoIPnL); LIidPRB(type_LIidPRB);
var company_gLhYwEk = jQuery("#jform_company").val(); var company_PotrAOo = jQuery("#jform_company").val();
gLhYwEk(company_gLhYwEk); PotrAOo(company_PotrAOo);
}); });
// the xKzzDKV function // the PLEbHUm function
function xKzzDKV(type_xKzzDKV) function PLEbHUm(type_PLEbHUm)
{ {
// set the function logic // set the function logic
if (type_xKzzDKV == 2) if (type_PLEbHUm == 2)
{ {
jQuery('#jform_interventions').closest('.control-group').show(); jQuery('#jform_interventions').closest('.control-group').show();
if (jform_xKzzDKVdWU_required) if (jform_PLEbHUmNyB_required)
{ {
updateFieldRequired('interventions',0); updateFieldRequired('interventions',0);
jQuery('#jform_interventions').prop('required','required'); jQuery('#jform_interventions').prop('required','required');
jQuery('#jform_interventions').attr('aria-required',true); jQuery('#jform_interventions').attr('aria-required',true);
jQuery('#jform_interventions').addClass('required'); jQuery('#jform_interventions').addClass('required');
jform_xKzzDKVdWU_required = false; jform_PLEbHUmNyB_required = false;
} }
} }
else else
{ {
jQuery('#jform_interventions').closest('.control-group').hide(); jQuery('#jform_interventions').closest('.control-group').hide();
if (!jform_xKzzDKVdWU_required) if (!jform_PLEbHUmNyB_required)
{ {
updateFieldRequired('interventions',1); updateFieldRequired('interventions',1);
jQuery('#jform_interventions').removeAttr('required'); jQuery('#jform_interventions').removeAttr('required');
jQuery('#jform_interventions').removeAttr('aria-required'); jQuery('#jform_interventions').removeAttr('aria-required');
jQuery('#jform_interventions').removeClass('required'); jQuery('#jform_interventions').removeClass('required');
jform_xKzzDKVdWU_required = true; jform_PLEbHUmNyB_required = true;
} }
} }
} }
// the FEoIPnL function // the LIidPRB function
function FEoIPnL(type_FEoIPnL) function LIidPRB(type_LIidPRB)
{ {
// set the function logic // set the function logic
if (type_FEoIPnL == 1) if (type_LIidPRB == 1)
{ {
jQuery('#jform_intervention').closest('.control-group').show(); jQuery('#jform_intervention').closest('.control-group').show();
} }
@ -78,55 +78,55 @@ function FEoIPnL(type_FEoIPnL)
} }
} }
// the gLhYwEk function // the PotrAOo function
function gLhYwEk(company_gLhYwEk) function PotrAOo(company_PotrAOo)
{ {
if (isSet(company_gLhYwEk) && company_gLhYwEk.constructor !== Array) if (isSet(company_PotrAOo) && company_PotrAOo.constructor !== Array)
{ {
var temp_gLhYwEk = company_gLhYwEk; var temp_PotrAOo = company_PotrAOo;
var company_gLhYwEk = []; var company_PotrAOo = [];
company_gLhYwEk.push(temp_gLhYwEk); company_PotrAOo.push(temp_PotrAOo);
} }
else if (!isSet(company_gLhYwEk)) else if (!isSet(company_PotrAOo))
{ {
var company_gLhYwEk = []; var company_PotrAOo = [];
} }
var company = company_gLhYwEk.some(company_gLhYwEk_SomeFunc); var company = company_PotrAOo.some(company_PotrAOo_SomeFunc);
// set this function logic // set this function logic
if (company) if (company)
{ {
jQuery('#jform_country').closest('.control-group').show(); jQuery('#jform_country').closest('.control-group').show();
if (jform_gLhYwEkyzs_required) if (jform_PotrAOoulv_required)
{ {
updateFieldRequired('country',0); updateFieldRequired('country',0);
jQuery('#jform_country').prop('required','required'); jQuery('#jform_country').prop('required','required');
jQuery('#jform_country').attr('aria-required',true); jQuery('#jform_country').attr('aria-required',true);
jQuery('#jform_country').addClass('required'); jQuery('#jform_country').addClass('required');
jform_gLhYwEkyzs_required = false; jform_PotrAOoulv_required = false;
} }
} }
else else
{ {
jQuery('#jform_country').closest('.control-group').hide(); jQuery('#jform_country').closest('.control-group').hide();
if (!jform_gLhYwEkyzs_required) if (!jform_PotrAOoulv_required)
{ {
updateFieldRequired('country',1); updateFieldRequired('country',1);
jQuery('#jform_country').removeAttr('required'); jQuery('#jform_country').removeAttr('required');
jQuery('#jform_country').removeAttr('aria-required'); jQuery('#jform_country').removeAttr('aria-required');
jQuery('#jform_country').removeClass('required'); jQuery('#jform_country').removeClass('required');
jform_gLhYwEkyzs_required = true; jform_PotrAOoulv_required = true;
} }
} }
} }
// the gLhYwEk Some function // the PotrAOo Some function
function company_gLhYwEk_SomeFunc(company_gLhYwEk) function company_PotrAOo_SomeFunc(company_PotrAOo)
{ {
// set the function logic // set the function logic
if (company_gLhYwEk == 0) if (company_PotrAOo == 0)
{ {
return true; return true;
} }

View File

@ -17,64 +17,64 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// Some Global Values // Some Global Values
jform_HCncUhorFH_required = false; jform_pBdODibjvD_required = false;
// Initial Script // Initial Script
jQuery(document).ready(function() jQuery(document).ready(function()
{ {
var company_HCncUho = jQuery("#jform_company").val(); var company_pBdODib = jQuery("#jform_company").val();
HCncUho(company_HCncUho); pBdODib(company_pBdODib);
}); });
// the HCncUho function // the pBdODib function
function HCncUho(company_HCncUho) function pBdODib(company_pBdODib)
{ {
if (isSet(company_HCncUho) && company_HCncUho.constructor !== Array) if (isSet(company_pBdODib) && company_pBdODib.constructor !== Array)
{ {
var temp_HCncUho = company_HCncUho; var temp_pBdODib = company_pBdODib;
var company_HCncUho = []; var company_pBdODib = [];
company_HCncUho.push(temp_HCncUho); company_pBdODib.push(temp_pBdODib);
} }
else if (!isSet(company_HCncUho)) else if (!isSet(company_pBdODib))
{ {
var company_HCncUho = []; var company_pBdODib = [];
} }
var company = company_HCncUho.some(company_HCncUho_SomeFunc); var company = company_pBdODib.some(company_pBdODib_SomeFunc);
// set this function logic // set this function logic
if (company) if (company)
{ {
jQuery('#jform_country').closest('.control-group').show(); jQuery('#jform_country').closest('.control-group').show();
if (jform_HCncUhorFH_required) if (jform_pBdODibjvD_required)
{ {
updateFieldRequired('country',0); updateFieldRequired('country',0);
jQuery('#jform_country').prop('required','required'); jQuery('#jform_country').prop('required','required');
jQuery('#jform_country').attr('aria-required',true); jQuery('#jform_country').attr('aria-required',true);
jQuery('#jform_country').addClass('required'); jQuery('#jform_country').addClass('required');
jform_HCncUhorFH_required = false; jform_pBdODibjvD_required = false;
} }
} }
else else
{ {
jQuery('#jform_country').closest('.control-group').hide(); jQuery('#jform_country').closest('.control-group').hide();
if (!jform_HCncUhorFH_required) if (!jform_pBdODibjvD_required)
{ {
updateFieldRequired('country',1); updateFieldRequired('country',1);
jQuery('#jform_country').removeAttr('required'); jQuery('#jform_country').removeAttr('required');
jQuery('#jform_country').removeAttr('aria-required'); jQuery('#jform_country').removeAttr('aria-required');
jQuery('#jform_country').removeClass('required'); jQuery('#jform_country').removeClass('required');
jform_HCncUhorFH_required = true; jform_pBdODibjvD_required = true;
} }
} }
} }
// the HCncUho Some function // the pBdODib Some function
function company_HCncUho_SomeFunc(company_HCncUho) function company_pBdODib_SomeFunc(company_pBdODib)
{ {
// set the function logic // set the function logic
if (company_HCncUho == 0) if (company_pBdODib == 0)
{ {
return true; return true;
} }

View File

@ -143,33 +143,33 @@ $componentParams = JComponentHelper::getParams('com_costbenefitprojection');
<script type="text/javascript"> <script type="text/javascript">
// #jform_department listeners for department_mKGkOJK function // #jform_department listeners for department_kZREHRf function
jQuery('#jform_department').on('keyup',function() jQuery('#jform_department').on('keyup',function()
{ {
var department_mKGkOJK = jQuery("#jform_department input[type='radio']:checked").val(); var department_kZREHRf = jQuery("#jform_department input[type='radio']:checked").val();
mKGkOJK(department_mKGkOJK); kZREHRf(department_kZREHRf);
}); });
jQuery('#adminForm').on('change', '#jform_department',function (e) jQuery('#adminForm').on('change', '#jform_department',function (e)
{ {
e.preventDefault(); e.preventDefault();
var department_mKGkOJK = jQuery("#jform_department input[type='radio']:checked").val(); var department_kZREHRf = jQuery("#jform_department input[type='radio']:checked").val();
mKGkOJK(department_mKGkOJK); kZREHRf(department_kZREHRf);
}); });
// #jform_department listeners for department_kvzvhgM function // #jform_department listeners for department_qFovEif function
jQuery('#jform_department').on('keyup',function() jQuery('#jform_department').on('keyup',function()
{ {
var department_kvzvhgM = jQuery("#jform_department input[type='radio']:checked").val(); var department_qFovEif = jQuery("#jform_department input[type='radio']:checked").val();
kvzvhgM(department_kvzvhgM); qFovEif(department_qFovEif);
}); });
jQuery('#adminForm').on('change', '#jform_department',function (e) jQuery('#adminForm').on('change', '#jform_department',function (e)
{ {
e.preventDefault(); e.preventDefault();
var department_kvzvhgM = jQuery("#jform_department input[type='radio']:checked").val(); var department_qFovEif = jQuery("#jform_department input[type='radio']:checked").val();
kvzvhgM(department_kvzvhgM); qFovEif(department_qFovEif);
}); });

View File

@ -65,10 +65,10 @@ class CostbenefitprojectionViewCompany extends JViewLegacy
} }
// Get Linked view data // Get Linked view data
$this->vqpscaling_factors = $this->get('Vqpscaling_factors'); $this->obqscaling_factors = $this->get('Obqscaling_factors');
// Get Linked view data // Get Linked view data
$this->dghinterventions = $this->get('Dghinterventions'); $this->ledinterventions = $this->get('Ledinterventions');
// Set the toolbar // Set the toolbar
$this->addToolBar(); $this->addToolBar();

View File

@ -105,48 +105,48 @@ $componentParams = JComponentHelper::getParams('com_costbenefitprojection');
<script type="text/javascript"> <script type="text/javascript">
// #jform_type listeners for type_xKzzDKV function // #jform_type listeners for type_PLEbHUm function
jQuery('#jform_type').on('keyup',function() jQuery('#jform_type').on('keyup',function()
{ {
var type_xKzzDKV = jQuery("#jform_type input[type='radio']:checked").val(); var type_PLEbHUm = jQuery("#jform_type input[type='radio']:checked").val();
xKzzDKV(type_xKzzDKV); PLEbHUm(type_PLEbHUm);
}); });
jQuery('#adminForm').on('change', '#jform_type',function (e) jQuery('#adminForm').on('change', '#jform_type',function (e)
{ {
e.preventDefault(); e.preventDefault();
var type_xKzzDKV = jQuery("#jform_type input[type='radio']:checked").val(); var type_PLEbHUm = jQuery("#jform_type input[type='radio']:checked").val();
xKzzDKV(type_xKzzDKV); PLEbHUm(type_PLEbHUm);
}); });
// #jform_type listeners for type_FEoIPnL function // #jform_type listeners for type_LIidPRB function
jQuery('#jform_type').on('keyup',function() jQuery('#jform_type').on('keyup',function()
{ {
var type_FEoIPnL = jQuery("#jform_type input[type='radio']:checked").val(); var type_LIidPRB = jQuery("#jform_type input[type='radio']:checked").val();
FEoIPnL(type_FEoIPnL); LIidPRB(type_LIidPRB);
}); });
jQuery('#adminForm').on('change', '#jform_type',function (e) jQuery('#adminForm').on('change', '#jform_type',function (e)
{ {
e.preventDefault(); e.preventDefault();
var type_FEoIPnL = jQuery("#jform_type input[type='radio']:checked").val(); var type_LIidPRB = jQuery("#jform_type input[type='radio']:checked").val();
FEoIPnL(type_FEoIPnL); LIidPRB(type_LIidPRB);
}); });
// #jform_company listeners for company_gLhYwEk function // #jform_company listeners for company_PotrAOo function
jQuery('#jform_company').on('keyup',function() jQuery('#jform_company').on('keyup',function()
{ {
var company_gLhYwEk = jQuery("#jform_company").val(); var company_PotrAOo = jQuery("#jform_company").val();
gLhYwEk(company_gLhYwEk); PotrAOo(company_PotrAOo);
}); });
jQuery('#adminForm').on('change', '#jform_company',function (e) jQuery('#adminForm').on('change', '#jform_company',function (e)
{ {
e.preventDefault(); e.preventDefault();
var company_gLhYwEk = jQuery("#jform_company").val(); var company_PotrAOo = jQuery("#jform_company").val();
gLhYwEk(company_gLhYwEk); PotrAOo(company_PotrAOo);
}); });

View File

@ -90,18 +90,18 @@ $componentParams = JComponentHelper::getParams('com_costbenefitprojection');
<script type="text/javascript"> <script type="text/javascript">
// #jform_company listeners for company_HCncUho function // #jform_company listeners for company_pBdODib function
jQuery('#jform_company').on('keyup',function() jQuery('#jform_company').on('keyup',function()
{ {
var company_HCncUho = jQuery("#jform_company").val(); var company_pBdODib = jQuery("#jform_company").val();
HCncUho(company_HCncUho); pBdODib(company_pBdODib);
}); });
jQuery('#adminForm').on('change', '#jform_company',function (e) jQuery('#adminForm').on('change', '#jform_company',function (e)
{ {
e.preventDefault(); e.preventDefault();
var company_HCncUho = jQuery("#jform_company").val(); var company_pBdODib = jQuery("#jform_company").val();
HCncUho(company_HCncUho); pBdODib(company_pBdODib);
}); });