Resolved gh-441 to allow fieldtype name prefixing. Resolved gh-443 to allow Alphanumeric+dot in fieldtype name. Fixed gh-446 to insure that JFormRuleInt validates correctly in the admin field realtions. Improved the new plugin area to also have system name and option to add custom header code. gh-436
This commit is contained in:
@ -255,7 +255,6 @@ class ComponentbuilderModelAjax extends JModelList
|
||||
return ComponentbuilderHelper::getClassCode($id, $type);
|
||||
}
|
||||
|
||||
|
||||
public function getClassCodeIds($id, $type)
|
||||
{
|
||||
if ('property' === $type || 'method' === $type)
|
||||
@ -268,6 +267,15 @@ class ComponentbuilderModelAjax extends JModelList
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getClassHeaderCode($id, $type)
|
||||
{
|
||||
if ('extends' === $type && ($head = ComponentbuilderHelper::getVar('class_' . $type, $id, 'id', 'head')) !== false && ComponentbuilderHelper::checkString($head))
|
||||
{
|
||||
return base64_decode($head);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// Used in admin_view
|
||||
|
@ -1007,7 +1007,7 @@ class ComponentbuilderModelField extends JModelAdmin
|
||||
}
|
||||
break;
|
||||
case 'type':
|
||||
$property['value'] = ComponentbuilderHelper::safeString($property['value']);
|
||||
$property['value'] = ComponentbuilderHelper::safeTypeName($property['value']);
|
||||
break;
|
||||
}
|
||||
// load the property
|
||||
|
@ -40,12 +40,12 @@ class JFormFieldJoomlaplugins extends JFormFieldList
|
||||
// Get the databse object.
|
||||
$db = JFactory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
$query->select($db->quoteName(array('a.id','a.name','b.name','c.name'),array('id','plugin_name','class_extends_name','joomla_plugin_group_name')));
|
||||
$query->select($db->quoteName(array('a.id','a.system_name','a.name','b.name','c.name'),array('id','plugin_system_name','name','class_extends_name','joomla_plugin_group_name')));
|
||||
$query->from($db->quoteName('#__componentbuilder_joomla_plugin', 'a'));
|
||||
$query->join('LEFT', $db->quoteName('#__componentbuilder_class_extends', 'b') . ' ON (' . $db->quoteName('a.class_extends') . ' = ' . $db->quoteName('b.id') . ')');
|
||||
$query->join('LEFT', $db->quoteName('#__componentbuilder_joomla_plugin_group', 'c') . ' ON (' . $db->quoteName('a.joomla_plugin_group') . ' = ' . $db->quoteName('c.id') . ')');
|
||||
$query->where($db->quoteName('a.published') . ' >= 1');
|
||||
$query->order('a.name ASC');
|
||||
$query->order('a.system_name ASC');
|
||||
// Implement View Level Access (if set in table)
|
||||
if (!$user->authorise('core.options', 'com_componentbuilder'))
|
||||
{
|
||||
@ -65,8 +65,7 @@ class JFormFieldJoomlaplugins extends JFormFieldList
|
||||
foreach($items as $item)
|
||||
{
|
||||
// set a full class name
|
||||
$select = 'class Plg' . ucfirst($item->joomla_plugin_group_name) . $item->plugin_name . ' extends ' . $item->class_extends_name;
|
||||
$options[] = JHtml::_('select.option', $item->id, $select);
|
||||
$options[] = JHtml::_('select.option', $item->id, '( ' . $item->plugin_system_name . ' ) class Plg' . ucfirst($item->joomla_plugin_group_name) . $item->name . ' extends ' . $item->class_extends_name);
|
||||
}
|
||||
}
|
||||
return $options;
|
||||
|
@ -203,7 +203,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
||||
*
|
||||
* @return mixed An array of data items on success, false on failure.
|
||||
*/
|
||||
public function getVxsfields()
|
||||
public function getVxtfields()
|
||||
{
|
||||
// Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
@ -285,13 +285,13 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
// convert datatype
|
||||
$item->datatype = $this->selectionTranslationVxsfields($item->datatype, 'datatype');
|
||||
$item->datatype = $this->selectionTranslationVxtfields($item->datatype, 'datatype');
|
||||
// convert indexes
|
||||
$item->indexes = $this->selectionTranslationVxsfields($item->indexes, 'indexes');
|
||||
$item->indexes = $this->selectionTranslationVxtfields($item->indexes, 'indexes');
|
||||
// convert null_switch
|
||||
$item->null_switch = $this->selectionTranslationVxsfields($item->null_switch, 'null_switch');
|
||||
$item->null_switch = $this->selectionTranslationVxtfields($item->null_switch, 'null_switch');
|
||||
// convert store
|
||||
$item->store = $this->selectionTranslationVxsfields($item->store, 'store');
|
||||
$item->store = $this->selectionTranslationVxtfields($item->store, 'store');
|
||||
}
|
||||
}
|
||||
|
||||
@ -305,7 +305,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
||||
*
|
||||
* @return translatable string
|
||||
*/
|
||||
public function selectionTranslationVxsfields($value,$name)
|
||||
public function selectionTranslationVxtfields($value,$name)
|
||||
{
|
||||
// Array of datatype language strings
|
||||
if ($name === 'datatype')
|
||||
|
@ -9,123 +9,123 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvvydvwd_required = false;
|
||||
jform_vvvvvyevwe_required = false;
|
||||
jform_vvvvvyivwf_required = false;
|
||||
jform_vvvvvyivwg_required = false;
|
||||
jform_vvvvvyivwh_required = false;
|
||||
jform_vvvvvyivwi_required = false;
|
||||
jform_vvvvvyivwj_required = false;
|
||||
jform_vvvvvyivwk_required = false;
|
||||
jform_vvvvvyivwl_required = false;
|
||||
jform_vvvvvygvwe_required = false;
|
||||
jform_vvvvvyhvwf_required = false;
|
||||
jform_vvvvvylvwg_required = false;
|
||||
jform_vvvvvylvwh_required = false;
|
||||
jform_vvvvvylvwi_required = false;
|
||||
jform_vvvvvylvwj_required = false;
|
||||
jform_vvvvvylvwk_required = false;
|
||||
jform_vvvvvylvwl_required = false;
|
||||
jform_vvvvvylvwm_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var add_css_view_vvvvvxd = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvvxd(add_css_view_vvvvvxd);
|
||||
var add_css_view_vvvvvxg = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvvxg(add_css_view_vvvvvxg);
|
||||
|
||||
var add_css_views_vvvvvxe = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvvxe(add_css_views_vvvvvxe);
|
||||
var add_css_views_vvvvvxh = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvvxh(add_css_views_vvvvvxh);
|
||||
|
||||
var add_javascript_view_file_vvvvvxf = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val();
|
||||
vvvvvxf(add_javascript_view_file_vvvvvxf);
|
||||
var add_javascript_view_file_vvvvvxi = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val();
|
||||
vvvvvxi(add_javascript_view_file_vvvvvxi);
|
||||
|
||||
var add_javascript_views_file_vvvvvxg = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val();
|
||||
vvvvvxg(add_javascript_views_file_vvvvvxg);
|
||||
var add_javascript_views_file_vvvvvxj = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val();
|
||||
vvvvvxj(add_javascript_views_file_vvvvvxj);
|
||||
|
||||
var add_javascript_view_footer_vvvvvxh = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvvxh(add_javascript_view_footer_vvvvvxh);
|
||||
var add_javascript_view_footer_vvvvvxk = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvvxk(add_javascript_view_footer_vvvvvxk);
|
||||
|
||||
var add_javascript_views_footer_vvvvvxi = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvvxi(add_javascript_views_footer_vvvvvxi);
|
||||
var add_javascript_views_footer_vvvvvxl = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvvxl(add_javascript_views_footer_vvvvvxl);
|
||||
|
||||
var add_php_ajax_vvvvvxj = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvxj(add_php_ajax_vvvvvxj);
|
||||
var add_php_ajax_vvvvvxm = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvxm(add_php_ajax_vvvvvxm);
|
||||
|
||||
var add_php_getitem_vvvvvxk = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
|
||||
vvvvvxk(add_php_getitem_vvvvvxk);
|
||||
var add_php_getitem_vvvvvxn = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
|
||||
vvvvvxn(add_php_getitem_vvvvvxn);
|
||||
|
||||
var add_php_getitems_vvvvvxl = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
|
||||
vvvvvxl(add_php_getitems_vvvvvxl);
|
||||
var add_php_getitems_vvvvvxo = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
|
||||
vvvvvxo(add_php_getitems_vvvvvxo);
|
||||
|
||||
var add_php_getitems_after_all_vvvvvxm = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val();
|
||||
vvvvvxm(add_php_getitems_after_all_vvvvvxm);
|
||||
var add_php_getitems_after_all_vvvvvxp = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val();
|
||||
vvvvvxp(add_php_getitems_after_all_vvvvvxp);
|
||||
|
||||
var add_php_getlistquery_vvvvvxn = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
vvvvvxn(add_php_getlistquery_vvvvvxn);
|
||||
var add_php_getlistquery_vvvvvxq = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
vvvvvxq(add_php_getlistquery_vvvvvxq);
|
||||
|
||||
var add_php_getform_vvvvvxo = jQuery("#jform_add_php_getform input[type='radio']:checked").val();
|
||||
vvvvvxo(add_php_getform_vvvvvxo);
|
||||
var add_php_getform_vvvvvxr = jQuery("#jform_add_php_getform input[type='radio']:checked").val();
|
||||
vvvvvxr(add_php_getform_vvvvvxr);
|
||||
|
||||
var add_php_before_save_vvvvvxp = jQuery("#jform_add_php_before_save input[type='radio']:checked").val();
|
||||
vvvvvxp(add_php_before_save_vvvvvxp);
|
||||
var add_php_before_save_vvvvvxs = jQuery("#jform_add_php_before_save input[type='radio']:checked").val();
|
||||
vvvvvxs(add_php_before_save_vvvvvxs);
|
||||
|
||||
var add_php_save_vvvvvxq = jQuery("#jform_add_php_save input[type='radio']:checked").val();
|
||||
vvvvvxq(add_php_save_vvvvvxq);
|
||||
var add_php_save_vvvvvxt = jQuery("#jform_add_php_save input[type='radio']:checked").val();
|
||||
vvvvvxt(add_php_save_vvvvvxt);
|
||||
|
||||
var add_php_postsavehook_vvvvvxr = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
|
||||
vvvvvxr(add_php_postsavehook_vvvvvxr);
|
||||
var add_php_postsavehook_vvvvvxu = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
|
||||
vvvvvxu(add_php_postsavehook_vvvvvxu);
|
||||
|
||||
var add_php_allowadd_vvvvvxs = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val();
|
||||
vvvvvxs(add_php_allowadd_vvvvvxs);
|
||||
var add_php_allowadd_vvvvvxv = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val();
|
||||
vvvvvxv(add_php_allowadd_vvvvvxv);
|
||||
|
||||
var add_php_allowedit_vvvvvxt = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
|
||||
vvvvvxt(add_php_allowedit_vvvvvxt);
|
||||
var add_php_allowedit_vvvvvxw = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
|
||||
vvvvvxw(add_php_allowedit_vvvvvxw);
|
||||
|
||||
var add_php_before_cancel_vvvvvxu = jQuery("#jform_add_php_before_cancel input[type='radio']:checked").val();
|
||||
vvvvvxu(add_php_before_cancel_vvvvvxu);
|
||||
var add_php_before_cancel_vvvvvxx = jQuery("#jform_add_php_before_cancel input[type='radio']:checked").val();
|
||||
vvvvvxx(add_php_before_cancel_vvvvvxx);
|
||||
|
||||
var add_php_after_cancel_vvvvvxv = jQuery("#jform_add_php_after_cancel input[type='radio']:checked").val();
|
||||
vvvvvxv(add_php_after_cancel_vvvvvxv);
|
||||
var add_php_after_cancel_vvvvvxy = jQuery("#jform_add_php_after_cancel input[type='radio']:checked").val();
|
||||
vvvvvxy(add_php_after_cancel_vvvvvxy);
|
||||
|
||||
var add_php_batchcopy_vvvvvxw = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
|
||||
vvvvvxw(add_php_batchcopy_vvvvvxw);
|
||||
var add_php_batchcopy_vvvvvxz = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
|
||||
vvvvvxz(add_php_batchcopy_vvvvvxz);
|
||||
|
||||
var add_php_batchmove_vvvvvxx = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
|
||||
vvvvvxx(add_php_batchmove_vvvvvxx);
|
||||
var add_php_batchmove_vvvvvya = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
|
||||
vvvvvya(add_php_batchmove_vvvvvya);
|
||||
|
||||
var add_php_before_publish_vvvvvxy = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
|
||||
vvvvvxy(add_php_before_publish_vvvvvxy);
|
||||
var add_php_before_publish_vvvvvyb = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
|
||||
vvvvvyb(add_php_before_publish_vvvvvyb);
|
||||
|
||||
var add_php_after_publish_vvvvvxz = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
|
||||
vvvvvxz(add_php_after_publish_vvvvvxz);
|
||||
var add_php_after_publish_vvvvvyc = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
|
||||
vvvvvyc(add_php_after_publish_vvvvvyc);
|
||||
|
||||
var add_php_before_delete_vvvvvya = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
|
||||
vvvvvya(add_php_before_delete_vvvvvya);
|
||||
var add_php_before_delete_vvvvvyd = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
|
||||
vvvvvyd(add_php_before_delete_vvvvvyd);
|
||||
|
||||
var add_php_after_delete_vvvvvyb = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
|
||||
vvvvvyb(add_php_after_delete_vvvvvyb);
|
||||
var add_php_after_delete_vvvvvye = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
|
||||
vvvvvye(add_php_after_delete_vvvvvye);
|
||||
|
||||
var add_php_document_vvvvvyc = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvyc(add_php_document_vvvvvyc);
|
||||
var add_php_document_vvvvvyf = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvyf(add_php_document_vvvvvyf);
|
||||
|
||||
var add_sql_vvvvvyd = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvyd(add_sql_vvvvvyd);
|
||||
|
||||
var source_vvvvvye = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvye = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvye(source_vvvvvye,add_sql_vvvvvye);
|
||||
|
||||
var source_vvvvvyg = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvyg = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvyg(source_vvvvvyg,add_sql_vvvvvyg);
|
||||
vvvvvyg(add_sql_vvvvvyg);
|
||||
|
||||
var add_custom_import_vvvvvyi = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
|
||||
vvvvvyi(add_custom_import_vvvvvyi);
|
||||
var source_vvvvvyh = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvyh = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvyh(source_vvvvvyh,add_sql_vvvvvyh);
|
||||
|
||||
var add_custom_import_vvvvvyj = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
|
||||
vvvvvyj(add_custom_import_vvvvvyj);
|
||||
var source_vvvvvyj = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvyj = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvyj(source_vvvvvyj,add_sql_vvvvvyj);
|
||||
|
||||
var add_custom_button_vvvvvyk = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvyk(add_custom_button_vvvvvyk);
|
||||
var add_custom_import_vvvvvyl = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
|
||||
vvvvvyl(add_custom_import_vvvvvyl);
|
||||
|
||||
var add_custom_import_vvvvvym = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
|
||||
vvvvvym(add_custom_import_vvvvvym);
|
||||
|
||||
var add_custom_button_vvvvvyn = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvyn(add_custom_button_vvvvvyn);
|
||||
});
|
||||
|
||||
// the vvvvvxd function
|
||||
function vvvvvxd(add_css_view_vvvvvxd)
|
||||
// the vvvvvxg function
|
||||
function vvvvvxg(add_css_view_vvvvvxg)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_view_vvvvvxd == 1)
|
||||
if (add_css_view_vvvvvxg == 1)
|
||||
{
|
||||
jQuery('#jform_css_view-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -135,11 +135,11 @@ function vvvvvxd(add_css_view_vvvvvxd)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvxe function
|
||||
function vvvvvxe(add_css_views_vvvvvxe)
|
||||
// the vvvvvxh function
|
||||
function vvvvvxh(add_css_views_vvvvvxh)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_views_vvvvvxe == 1)
|
||||
if (add_css_views_vvvvvxh == 1)
|
||||
{
|
||||
jQuery('#jform_css_views-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -149,11 +149,11 @@ function vvvvvxe(add_css_views_vvvvvxe)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvxf function
|
||||
function vvvvvxf(add_javascript_view_file_vvvvvxf)
|
||||
// the vvvvvxi function
|
||||
function vvvvvxi(add_javascript_view_file_vvvvvxi)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_javascript_view_file_vvvvvxf == 1)
|
||||
if (add_javascript_view_file_vvvvvxi == 1)
|
||||
{
|
||||
jQuery('#jform_javascript_view_file-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -163,11 +163,11 @@ function vvvvvxf(add_javascript_view_file_vvvvvxf)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvxg function
|
||||
function vvvvvxg(add_javascript_views_file_vvvvvxg)
|
||||
// the vvvvvxj function
|
||||
function vvvvvxj(add_javascript_views_file_vvvvvxj)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_javascript_views_file_vvvvvxg == 1)
|
||||
if (add_javascript_views_file_vvvvvxj == 1)
|
||||
{
|
||||
jQuery('#jform_javascript_views_file-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -177,11 +177,11 @@ function vvvvvxg(add_javascript_views_file_vvvvvxg)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvxh function
|
||||
function vvvvvxh(add_javascript_view_footer_vvvvvxh)
|
||||
// the vvvvvxk function
|
||||
function vvvvvxk(add_javascript_view_footer_vvvvvxk)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_javascript_view_footer_vvvvvxh == 1)
|
||||
if (add_javascript_view_footer_vvvvvxk == 1)
|
||||
{
|
||||
jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -191,11 +191,11 @@ function vvvvvxh(add_javascript_view_footer_vvvvvxh)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvxi function
|
||||
function vvvvvxi(add_javascript_views_footer_vvvvvxi)
|
||||
// the vvvvvxl function
|
||||
function vvvvvxl(add_javascript_views_footer_vvvvvxl)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_javascript_views_footer_vvvvvxi == 1)
|
||||
if (add_javascript_views_footer_vvvvvxl == 1)
|
||||
{
|
||||
jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -205,11 +205,11 @@ function vvvvvxi(add_javascript_views_footer_vvvvvxi)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvxj function
|
||||
function vvvvvxj(add_php_ajax_vvvvvxj)
|
||||
// the vvvvvxm function
|
||||
function vvvvvxm(add_php_ajax_vvvvvxm)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_ajax_vvvvvxj == 1)
|
||||
if (add_php_ajax_vvvvvxm == 1)
|
||||
{
|
||||
jQuery('#jform_ajax_input-lbl').closest('.control-group').show();
|
||||
jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').show();
|
||||
@ -221,11 +221,11 @@ function vvvvvxj(add_php_ajax_vvvvvxj)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvxk function
|
||||
function vvvvvxk(add_php_getitem_vvvvvxk)
|
||||
// the vvvvvxn function
|
||||
function vvvvvxn(add_php_getitem_vvvvvxn)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_getitem_vvvvvxk == 1)
|
||||
if (add_php_getitem_vvvvvxn == 1)
|
||||
{
|
||||
jQuery('#jform_php_getitem-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -235,11 +235,11 @@ function vvvvvxk(add_php_getitem_vvvvvxk)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvxl function
|
||||
function vvvvvxl(add_php_getitems_vvvvvxl)
|
||||
// the vvvvvxo function
|
||||
function vvvvvxo(add_php_getitems_vvvvvxo)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_getitems_vvvvvxl == 1)
|
||||
if (add_php_getitems_vvvvvxo == 1)
|
||||
{
|
||||
jQuery('#jform_php_getitems-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -249,11 +249,11 @@ function vvvvvxl(add_php_getitems_vvvvvxl)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvxm function
|
||||
function vvvvvxm(add_php_getitems_after_all_vvvvvxm)
|
||||
// the vvvvvxp function
|
||||
function vvvvvxp(add_php_getitems_after_all_vvvvvxp)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_getitems_after_all_vvvvvxm == 1)
|
||||
if (add_php_getitems_after_all_vvvvvxp == 1)
|
||||
{
|
||||
jQuery('#jform_php_getitems_after_all-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -263,11 +263,11 @@ function vvvvvxm(add_php_getitems_after_all_vvvvvxm)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvxn function
|
||||
function vvvvvxn(add_php_getlistquery_vvvvvxn)
|
||||
// the vvvvvxq function
|
||||
function vvvvvxq(add_php_getlistquery_vvvvvxq)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_getlistquery_vvvvvxn == 1)
|
||||
if (add_php_getlistquery_vvvvvxq == 1)
|
||||
{
|
||||
jQuery('#jform_php_getlistquery-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -277,11 +277,11 @@ function vvvvvxn(add_php_getlistquery_vvvvvxn)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvxo function
|
||||
function vvvvvxo(add_php_getform_vvvvvxo)
|
||||
// the vvvvvxr function
|
||||
function vvvvvxr(add_php_getform_vvvvvxr)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_getform_vvvvvxo == 1)
|
||||
if (add_php_getform_vvvvvxr == 1)
|
||||
{
|
||||
jQuery('#jform_php_getform-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -291,11 +291,11 @@ function vvvvvxo(add_php_getform_vvvvvxo)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvxp function
|
||||
function vvvvvxp(add_php_before_save_vvvvvxp)
|
||||
// the vvvvvxs function
|
||||
function vvvvvxs(add_php_before_save_vvvvvxs)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_before_save_vvvvvxp == 1)
|
||||
if (add_php_before_save_vvvvvxs == 1)
|
||||
{
|
||||
jQuery('#jform_php_before_save-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -305,11 +305,11 @@ function vvvvvxp(add_php_before_save_vvvvvxp)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvxq function
|
||||
function vvvvvxq(add_php_save_vvvvvxq)
|
||||
// the vvvvvxt function
|
||||
function vvvvvxt(add_php_save_vvvvvxt)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_save_vvvvvxq == 1)
|
||||
if (add_php_save_vvvvvxt == 1)
|
||||
{
|
||||
jQuery('#jform_php_save-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -319,11 +319,11 @@ function vvvvvxq(add_php_save_vvvvvxq)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvxr function
|
||||
function vvvvvxr(add_php_postsavehook_vvvvvxr)
|
||||
// the vvvvvxu function
|
||||
function vvvvvxu(add_php_postsavehook_vvvvvxu)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_postsavehook_vvvvvxr == 1)
|
||||
if (add_php_postsavehook_vvvvvxu == 1)
|
||||
{
|
||||
jQuery('#jform_php_postsavehook-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -333,11 +333,11 @@ function vvvvvxr(add_php_postsavehook_vvvvvxr)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvxs function
|
||||
function vvvvvxs(add_php_allowadd_vvvvvxs)
|
||||
// the vvvvvxv function
|
||||
function vvvvvxv(add_php_allowadd_vvvvvxv)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_allowadd_vvvvvxs == 1)
|
||||
if (add_php_allowadd_vvvvvxv == 1)
|
||||
{
|
||||
jQuery('#jform_php_allowadd-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -347,11 +347,11 @@ function vvvvvxs(add_php_allowadd_vvvvvxs)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvxt function
|
||||
function vvvvvxt(add_php_allowedit_vvvvvxt)
|
||||
// the vvvvvxw function
|
||||
function vvvvvxw(add_php_allowedit_vvvvvxw)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_allowedit_vvvvvxt == 1)
|
||||
if (add_php_allowedit_vvvvvxw == 1)
|
||||
{
|
||||
jQuery('#jform_php_allowedit-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -361,11 +361,11 @@ function vvvvvxt(add_php_allowedit_vvvvvxt)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvxu function
|
||||
function vvvvvxu(add_php_before_cancel_vvvvvxu)
|
||||
// the vvvvvxx function
|
||||
function vvvvvxx(add_php_before_cancel_vvvvvxx)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_before_cancel_vvvvvxu == 1)
|
||||
if (add_php_before_cancel_vvvvvxx == 1)
|
||||
{
|
||||
jQuery('#jform_php_before_cancel-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -375,11 +375,11 @@ function vvvvvxu(add_php_before_cancel_vvvvvxu)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvxv function
|
||||
function vvvvvxv(add_php_after_cancel_vvvvvxv)
|
||||
// the vvvvvxy function
|
||||
function vvvvvxy(add_php_after_cancel_vvvvvxy)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_after_cancel_vvvvvxv == 1)
|
||||
if (add_php_after_cancel_vvvvvxy == 1)
|
||||
{
|
||||
jQuery('#jform_php_after_cancel-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -389,11 +389,11 @@ function vvvvvxv(add_php_after_cancel_vvvvvxv)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvxw function
|
||||
function vvvvvxw(add_php_batchcopy_vvvvvxw)
|
||||
// the vvvvvxz function
|
||||
function vvvvvxz(add_php_batchcopy_vvvvvxz)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_batchcopy_vvvvvxw == 1)
|
||||
if (add_php_batchcopy_vvvvvxz == 1)
|
||||
{
|
||||
jQuery('#jform_php_batchcopy-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -403,11 +403,11 @@ function vvvvvxw(add_php_batchcopy_vvvvvxw)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvxx function
|
||||
function vvvvvxx(add_php_batchmove_vvvvvxx)
|
||||
// the vvvvvya function
|
||||
function vvvvvya(add_php_batchmove_vvvvvya)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_batchmove_vvvvvxx == 1)
|
||||
if (add_php_batchmove_vvvvvya == 1)
|
||||
{
|
||||
jQuery('#jform_php_batchmove-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -417,11 +417,11 @@ function vvvvvxx(add_php_batchmove_vvvvvxx)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvxy function
|
||||
function vvvvvxy(add_php_before_publish_vvvvvxy)
|
||||
// the vvvvvyb function
|
||||
function vvvvvyb(add_php_before_publish_vvvvvyb)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_before_publish_vvvvvxy == 1)
|
||||
if (add_php_before_publish_vvvvvyb == 1)
|
||||
{
|
||||
jQuery('#jform_php_before_publish-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -431,11 +431,11 @@ function vvvvvxy(add_php_before_publish_vvvvvxy)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvxz function
|
||||
function vvvvvxz(add_php_after_publish_vvvvvxz)
|
||||
// the vvvvvyc function
|
||||
function vvvvvyc(add_php_after_publish_vvvvvyc)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_after_publish_vvvvvxz == 1)
|
||||
if (add_php_after_publish_vvvvvyc == 1)
|
||||
{
|
||||
jQuery('#jform_php_after_publish-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -445,11 +445,11 @@ function vvvvvxz(add_php_after_publish_vvvvvxz)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvya function
|
||||
function vvvvvya(add_php_before_delete_vvvvvya)
|
||||
// the vvvvvyd function
|
||||
function vvvvvyd(add_php_before_delete_vvvvvyd)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_before_delete_vvvvvya == 1)
|
||||
if (add_php_before_delete_vvvvvyd == 1)
|
||||
{
|
||||
jQuery('#jform_php_before_delete-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -459,11 +459,11 @@ function vvvvvya(add_php_before_delete_vvvvvya)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyb function
|
||||
function vvvvvyb(add_php_after_delete_vvvvvyb)
|
||||
// the vvvvvye function
|
||||
function vvvvvye(add_php_after_delete_vvvvvye)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_after_delete_vvvvvyb == 1)
|
||||
if (add_php_after_delete_vvvvvye == 1)
|
||||
{
|
||||
jQuery('#jform_php_after_delete-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -473,11 +473,11 @@ function vvvvvyb(add_php_after_delete_vvvvvyb)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyc function
|
||||
function vvvvvyc(add_php_document_vvvvvyc)
|
||||
// the vvvvvyf function
|
||||
function vvvvvyf(add_php_document_vvvvvyf)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_document_vvvvvyc == 1)
|
||||
if (add_php_document_vvvvvyf == 1)
|
||||
{
|
||||
jQuery('#jform_php_document-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -487,75 +487,75 @@ function vvvvvyc(add_php_document_vvvvvyc)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyd function
|
||||
function vvvvvyd(add_sql_vvvvvyd)
|
||||
// the vvvvvyg function
|
||||
function vvvvvyg(add_sql_vvvvvyg)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_sql_vvvvvyd == 1)
|
||||
if (add_sql_vvvvvyg == 1)
|
||||
{
|
||||
jQuery('#jform_source').closest('.control-group').show();
|
||||
// add required attribute to source field
|
||||
if (jform_vvvvvydvwd_required)
|
||||
if (jform_vvvvvygvwe_required)
|
||||
{
|
||||
updateFieldRequired('source',0);
|
||||
jQuery('#jform_source').prop('required','required');
|
||||
jQuery('#jform_source').attr('aria-required',true);
|
||||
jQuery('#jform_source').addClass('required');
|
||||
jform_vvvvvydvwd_required = false;
|
||||
jform_vvvvvygvwe_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_source').closest('.control-group').hide();
|
||||
// remove required attribute from source field
|
||||
if (!jform_vvvvvydvwd_required)
|
||||
if (!jform_vvvvvygvwe_required)
|
||||
{
|
||||
updateFieldRequired('source',1);
|
||||
jQuery('#jform_source').removeAttr('required');
|
||||
jQuery('#jform_source').removeAttr('aria-required');
|
||||
jQuery('#jform_source').removeClass('required');
|
||||
jform_vvvvvydvwd_required = true;
|
||||
jform_vvvvvygvwe_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvye function
|
||||
function vvvvvye(source_vvvvvye,add_sql_vvvvvye)
|
||||
// the vvvvvyh function
|
||||
function vvvvvyh(source_vvvvvyh,add_sql_vvvvvyh)
|
||||
{
|
||||
// set the function logic
|
||||
if (source_vvvvvye == 2 && add_sql_vvvvvye == 1)
|
||||
if (source_vvvvvyh == 2 && add_sql_vvvvvyh == 1)
|
||||
{
|
||||
jQuery('#jform_sql').closest('.control-group').show();
|
||||
// add required attribute to sql field
|
||||
if (jform_vvvvvyevwe_required)
|
||||
if (jform_vvvvvyhvwf_required)
|
||||
{
|
||||
updateFieldRequired('sql',0);
|
||||
jQuery('#jform_sql').prop('required','required');
|
||||
jQuery('#jform_sql').attr('aria-required',true);
|
||||
jQuery('#jform_sql').addClass('required');
|
||||
jform_vvvvvyevwe_required = false;
|
||||
jform_vvvvvyhvwf_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_sql').closest('.control-group').hide();
|
||||
// remove required attribute from sql field
|
||||
if (!jform_vvvvvyevwe_required)
|
||||
if (!jform_vvvvvyhvwf_required)
|
||||
{
|
||||
updateFieldRequired('sql',1);
|
||||
jQuery('#jform_sql').removeAttr('required');
|
||||
jQuery('#jform_sql').removeAttr('aria-required');
|
||||
jQuery('#jform_sql').removeClass('required');
|
||||
jform_vvvvvyevwe_required = true;
|
||||
jform_vvvvvyhvwf_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyg function
|
||||
function vvvvvyg(source_vvvvvyg,add_sql_vvvvvyg)
|
||||
// the vvvvvyj function
|
||||
function vvvvvyj(source_vvvvvyj,add_sql_vvvvvyj)
|
||||
{
|
||||
// set the function logic
|
||||
if (source_vvvvvyg == 1 && add_sql_vvvvvyg == 1)
|
||||
if (source_vvvvvyj == 1 && add_sql_vvvvvyj == 1)
|
||||
{
|
||||
jQuery('#jform_addtables-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -565,165 +565,165 @@ function vvvvvyg(source_vvvvvyg,add_sql_vvvvvyg)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyi function
|
||||
function vvvvvyi(add_custom_import_vvvvvyi)
|
||||
// the vvvvvyl function
|
||||
function vvvvvyl(add_custom_import_vvvvvyl)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_custom_import_vvvvvyi == 1)
|
||||
if (add_custom_import_vvvvvyl == 1)
|
||||
{
|
||||
jQuery('#jform_html_import_view').closest('.control-group').show();
|
||||
// add required attribute to html_import_view field
|
||||
if (jform_vvvvvyivwf_required)
|
||||
if (jform_vvvvvylvwg_required)
|
||||
{
|
||||
updateFieldRequired('html_import_view',0);
|
||||
jQuery('#jform_html_import_view').prop('required','required');
|
||||
jQuery('#jform_html_import_view').attr('aria-required',true);
|
||||
jQuery('#jform_html_import_view').addClass('required');
|
||||
jform_vvvvvyivwf_required = false;
|
||||
jform_vvvvvylvwg_required = false;
|
||||
}
|
||||
jQuery('.note_advanced_import').closest('.control-group').show();
|
||||
jQuery('#jform_php_import_display').closest('.control-group').show();
|
||||
// add required attribute to php_import_display field
|
||||
if (jform_vvvvvyivwg_required)
|
||||
if (jform_vvvvvylvwh_required)
|
||||
{
|
||||
updateFieldRequired('php_import_display',0);
|
||||
jQuery('#jform_php_import_display').prop('required','required');
|
||||
jQuery('#jform_php_import_display').attr('aria-required',true);
|
||||
jQuery('#jform_php_import_display').addClass('required');
|
||||
jform_vvvvvyivwg_required = false;
|
||||
jform_vvvvvylvwh_required = false;
|
||||
}
|
||||
jQuery('#jform_php_import_ext').closest('.control-group').show();
|
||||
// add required attribute to php_import_ext field
|
||||
if (jform_vvvvvyivwh_required)
|
||||
if (jform_vvvvvylvwi_required)
|
||||
{
|
||||
updateFieldRequired('php_import_ext',0);
|
||||
jQuery('#jform_php_import_ext').prop('required','required');
|
||||
jQuery('#jform_php_import_ext').attr('aria-required',true);
|
||||
jQuery('#jform_php_import_ext').addClass('required');
|
||||
jform_vvvvvyivwh_required = false;
|
||||
jform_vvvvvylvwi_required = false;
|
||||
}
|
||||
jQuery('#jform_php_import_headers').closest('.control-group').show();
|
||||
// add required attribute to php_import_headers field
|
||||
if (jform_vvvvvyivwi_required)
|
||||
if (jform_vvvvvylvwj_required)
|
||||
{
|
||||
updateFieldRequired('php_import_headers',0);
|
||||
jQuery('#jform_php_import_headers').prop('required','required');
|
||||
jQuery('#jform_php_import_headers').attr('aria-required',true);
|
||||
jQuery('#jform_php_import_headers').addClass('required');
|
||||
jform_vvvvvyivwi_required = false;
|
||||
jform_vvvvvylvwj_required = false;
|
||||
}
|
||||
jQuery('#jform_php_import').closest('.control-group').show();
|
||||
// add required attribute to php_import field
|
||||
if (jform_vvvvvyivwj_required)
|
||||
if (jform_vvvvvylvwk_required)
|
||||
{
|
||||
updateFieldRequired('php_import',0);
|
||||
jQuery('#jform_php_import').prop('required','required');
|
||||
jQuery('#jform_php_import').attr('aria-required',true);
|
||||
jQuery('#jform_php_import').addClass('required');
|
||||
jform_vvvvvyivwj_required = false;
|
||||
jform_vvvvvylvwk_required = false;
|
||||
}
|
||||
jQuery('#jform_php_import_save').closest('.control-group').show();
|
||||
// add required attribute to php_import_save field
|
||||
if (jform_vvvvvyivwk_required)
|
||||
if (jform_vvvvvylvwl_required)
|
||||
{
|
||||
updateFieldRequired('php_import_save',0);
|
||||
jQuery('#jform_php_import_save').prop('required','required');
|
||||
jQuery('#jform_php_import_save').attr('aria-required',true);
|
||||
jQuery('#jform_php_import_save').addClass('required');
|
||||
jform_vvvvvyivwk_required = false;
|
||||
jform_vvvvvylvwl_required = false;
|
||||
}
|
||||
jQuery('#jform_php_import_setdata').closest('.control-group').show();
|
||||
// add required attribute to php_import_setdata field
|
||||
if (jform_vvvvvyivwl_required)
|
||||
if (jform_vvvvvylvwm_required)
|
||||
{
|
||||
updateFieldRequired('php_import_setdata',0);
|
||||
jQuery('#jform_php_import_setdata').prop('required','required');
|
||||
jQuery('#jform_php_import_setdata').attr('aria-required',true);
|
||||
jQuery('#jform_php_import_setdata').addClass('required');
|
||||
jform_vvvvvyivwl_required = false;
|
||||
jform_vvvvvylvwm_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_html_import_view').closest('.control-group').hide();
|
||||
// remove required attribute from html_import_view field
|
||||
if (!jform_vvvvvyivwf_required)
|
||||
if (!jform_vvvvvylvwg_required)
|
||||
{
|
||||
updateFieldRequired('html_import_view',1);
|
||||
jQuery('#jform_html_import_view').removeAttr('required');
|
||||
jQuery('#jform_html_import_view').removeAttr('aria-required');
|
||||
jQuery('#jform_html_import_view').removeClass('required');
|
||||
jform_vvvvvyivwf_required = true;
|
||||
jform_vvvvvylvwg_required = true;
|
||||
}
|
||||
jQuery('.note_advanced_import').closest('.control-group').hide();
|
||||
jQuery('#jform_php_import_display').closest('.control-group').hide();
|
||||
// remove required attribute from php_import_display field
|
||||
if (!jform_vvvvvyivwg_required)
|
||||
if (!jform_vvvvvylvwh_required)
|
||||
{
|
||||
updateFieldRequired('php_import_display',1);
|
||||
jQuery('#jform_php_import_display').removeAttr('required');
|
||||
jQuery('#jform_php_import_display').removeAttr('aria-required');
|
||||
jQuery('#jform_php_import_display').removeClass('required');
|
||||
jform_vvvvvyivwg_required = true;
|
||||
jform_vvvvvylvwh_required = true;
|
||||
}
|
||||
jQuery('#jform_php_import_ext').closest('.control-group').hide();
|
||||
// remove required attribute from php_import_ext field
|
||||
if (!jform_vvvvvyivwh_required)
|
||||
if (!jform_vvvvvylvwi_required)
|
||||
{
|
||||
updateFieldRequired('php_import_ext',1);
|
||||
jQuery('#jform_php_import_ext').removeAttr('required');
|
||||
jQuery('#jform_php_import_ext').removeAttr('aria-required');
|
||||
jQuery('#jform_php_import_ext').removeClass('required');
|
||||
jform_vvvvvyivwh_required = true;
|
||||
jform_vvvvvylvwi_required = true;
|
||||
}
|
||||
jQuery('#jform_php_import_headers').closest('.control-group').hide();
|
||||
// remove required attribute from php_import_headers field
|
||||
if (!jform_vvvvvyivwi_required)
|
||||
if (!jform_vvvvvylvwj_required)
|
||||
{
|
||||
updateFieldRequired('php_import_headers',1);
|
||||
jQuery('#jform_php_import_headers').removeAttr('required');
|
||||
jQuery('#jform_php_import_headers').removeAttr('aria-required');
|
||||
jQuery('#jform_php_import_headers').removeClass('required');
|
||||
jform_vvvvvyivwi_required = true;
|
||||
jform_vvvvvylvwj_required = true;
|
||||
}
|
||||
jQuery('#jform_php_import').closest('.control-group').hide();
|
||||
// remove required attribute from php_import field
|
||||
if (!jform_vvvvvyivwj_required)
|
||||
if (!jform_vvvvvylvwk_required)
|
||||
{
|
||||
updateFieldRequired('php_import',1);
|
||||
jQuery('#jform_php_import').removeAttr('required');
|
||||
jQuery('#jform_php_import').removeAttr('aria-required');
|
||||
jQuery('#jform_php_import').removeClass('required');
|
||||
jform_vvvvvyivwj_required = true;
|
||||
jform_vvvvvylvwk_required = true;
|
||||
}
|
||||
jQuery('#jform_php_import_save').closest('.control-group').hide();
|
||||
// remove required attribute from php_import_save field
|
||||
if (!jform_vvvvvyivwk_required)
|
||||
if (!jform_vvvvvylvwl_required)
|
||||
{
|
||||
updateFieldRequired('php_import_save',1);
|
||||
jQuery('#jform_php_import_save').removeAttr('required');
|
||||
jQuery('#jform_php_import_save').removeAttr('aria-required');
|
||||
jQuery('#jform_php_import_save').removeClass('required');
|
||||
jform_vvvvvyivwk_required = true;
|
||||
jform_vvvvvylvwl_required = true;
|
||||
}
|
||||
jQuery('#jform_php_import_setdata').closest('.control-group').hide();
|
||||
// remove required attribute from php_import_setdata field
|
||||
if (!jform_vvvvvyivwl_required)
|
||||
if (!jform_vvvvvylvwm_required)
|
||||
{
|
||||
updateFieldRequired('php_import_setdata',1);
|
||||
jQuery('#jform_php_import_setdata').removeAttr('required');
|
||||
jQuery('#jform_php_import_setdata').removeAttr('aria-required');
|
||||
jQuery('#jform_php_import_setdata').removeClass('required');
|
||||
jform_vvvvvyivwl_required = true;
|
||||
jform_vvvvvylvwm_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyj function
|
||||
function vvvvvyj(add_custom_import_vvvvvyj)
|
||||
// the vvvvvym function
|
||||
function vvvvvym(add_custom_import_vvvvvym)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_custom_import_vvvvvyj == 0)
|
||||
if (add_custom_import_vvvvvym == 0)
|
||||
{
|
||||
jQuery('.note_beginner_import').closest('.control-group').show();
|
||||
}
|
||||
@ -733,11 +733,11 @@ function vvvvvyj(add_custom_import_vvvvvyj)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyk function
|
||||
function vvvvvyk(add_custom_button_vvvvvyk)
|
||||
// the vvvvvyn function
|
||||
function vvvvvyn(add_custom_button_vvvvvyn)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_custom_button_vvvvvyk == 1)
|
||||
if (add_custom_button_vvvvvyn == 1)
|
||||
{
|
||||
jQuery('#jform_custom_button-lbl').closest('.control-group').show();
|
||||
jQuery('#jform_php_controller-lbl').closest('.control-group').show();
|
||||
|
@ -127,9 +127,9 @@
|
||||
label="COM_COMPONENTBUILDER_CLASS_EXTENDS_HEAD_LABEL"
|
||||
description="COM_COMPONENTBUILDER_CLASS_EXTENDS_HEAD_DESCRIPTION"
|
||||
width="100%"
|
||||
height="450px"
|
||||
height="100px"
|
||||
cols="15"
|
||||
rows="30"
|
||||
rows="10"
|
||||
buttons="no"
|
||||
syntax="php"
|
||||
editor="codemirror|none"
|
||||
|
@ -9,29 +9,29 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwaovxe_required = false;
|
||||
jform_vvvvwarvxf_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var extension_type_vvvvwao = jQuery("#jform_extension_type").val();
|
||||
vvvvwao(extension_type_vvvvwao);
|
||||
var extension_type_vvvvwar = jQuery("#jform_extension_type").val();
|
||||
vvvvwar(extension_type_vvvvwar);
|
||||
});
|
||||
|
||||
// the vvvvwao function
|
||||
function vvvvwao(extension_type_vvvvwao)
|
||||
// the vvvvwar function
|
||||
function vvvvwar(extension_type_vvvvwar)
|
||||
{
|
||||
if (isSet(extension_type_vvvvwao) && extension_type_vvvvwao.constructor !== Array)
|
||||
if (isSet(extension_type_vvvvwar) && extension_type_vvvvwar.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwao = extension_type_vvvvwao;
|
||||
var extension_type_vvvvwao = [];
|
||||
extension_type_vvvvwao.push(temp_vvvvwao);
|
||||
var temp_vvvvwar = extension_type_vvvvwar;
|
||||
var extension_type_vvvvwar = [];
|
||||
extension_type_vvvvwar.push(temp_vvvvwar);
|
||||
}
|
||||
else if (!isSet(extension_type_vvvvwao))
|
||||
else if (!isSet(extension_type_vvvvwar))
|
||||
{
|
||||
var extension_type_vvvvwao = [];
|
||||
var extension_type_vvvvwar = [];
|
||||
}
|
||||
var extension_type = extension_type_vvvvwao.some(extension_type_vvvvwao_SomeFunc);
|
||||
var extension_type = extension_type_vvvvwar.some(extension_type_vvvvwar_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -39,35 +39,35 @@ function vvvvwao(extension_type_vvvvwao)
|
||||
{
|
||||
jQuery('#jform_joomla_plugin_group').closest('.control-group').show();
|
||||
// add required attribute to joomla_plugin_group field
|
||||
if (jform_vvvvwaovxe_required)
|
||||
if (jform_vvvvwarvxf_required)
|
||||
{
|
||||
updateFieldRequired('joomla_plugin_group',0);
|
||||
jQuery('#jform_joomla_plugin_group').prop('required','required');
|
||||
jQuery('#jform_joomla_plugin_group').attr('aria-required',true);
|
||||
jQuery('#jform_joomla_plugin_group').addClass('required');
|
||||
jform_vvvvwaovxe_required = false;
|
||||
jform_vvvvwarvxf_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_joomla_plugin_group').closest('.control-group').hide();
|
||||
// remove required attribute from joomla_plugin_group field
|
||||
if (!jform_vvvvwaovxe_required)
|
||||
if (!jform_vvvvwarvxf_required)
|
||||
{
|
||||
updateFieldRequired('joomla_plugin_group',1);
|
||||
jQuery('#jform_joomla_plugin_group').removeAttr('required');
|
||||
jQuery('#jform_joomla_plugin_group').removeAttr('aria-required');
|
||||
jQuery('#jform_joomla_plugin_group').removeClass('required');
|
||||
jform_vvvvwaovxe_required = true;
|
||||
jform_vvvvwarvxf_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwao Some function
|
||||
function extension_type_vvvvwao_SomeFunc(extension_type_vvvvwao)
|
||||
// the vvvvwar Some function
|
||||
function extension_type_vvvvwar_SomeFunc(extension_type_vvvvwar)
|
||||
{
|
||||
// set the function logic
|
||||
if (extension_type_vvvvwao == 'plugins' || extension_type_vvvvwao == 'plugin')
|
||||
if (extension_type_vvvvwar == 'plugins' || extension_type_vvvvwar == 'plugin')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -9,29 +9,29 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwanvxd_required = false;
|
||||
jform_vvvvwaqvxe_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var extension_type_vvvvwan = jQuery("#jform_extension_type").val();
|
||||
vvvvwan(extension_type_vvvvwan);
|
||||
var extension_type_vvvvwaq = jQuery("#jform_extension_type").val();
|
||||
vvvvwaq(extension_type_vvvvwaq);
|
||||
});
|
||||
|
||||
// the vvvvwan function
|
||||
function vvvvwan(extension_type_vvvvwan)
|
||||
// the vvvvwaq function
|
||||
function vvvvwaq(extension_type_vvvvwaq)
|
||||
{
|
||||
if (isSet(extension_type_vvvvwan) && extension_type_vvvvwan.constructor !== Array)
|
||||
if (isSet(extension_type_vvvvwaq) && extension_type_vvvvwaq.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwan = extension_type_vvvvwan;
|
||||
var extension_type_vvvvwan = [];
|
||||
extension_type_vvvvwan.push(temp_vvvvwan);
|
||||
var temp_vvvvwaq = extension_type_vvvvwaq;
|
||||
var extension_type_vvvvwaq = [];
|
||||
extension_type_vvvvwaq.push(temp_vvvvwaq);
|
||||
}
|
||||
else if (!isSet(extension_type_vvvvwan))
|
||||
else if (!isSet(extension_type_vvvvwaq))
|
||||
{
|
||||
var extension_type_vvvvwan = [];
|
||||
var extension_type_vvvvwaq = [];
|
||||
}
|
||||
var extension_type = extension_type_vvvvwan.some(extension_type_vvvvwan_SomeFunc);
|
||||
var extension_type = extension_type_vvvvwaq.some(extension_type_vvvvwaq_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -39,35 +39,35 @@ function vvvvwan(extension_type_vvvvwan)
|
||||
{
|
||||
jQuery('#jform_joomla_plugin_group').closest('.control-group').show();
|
||||
// add required attribute to joomla_plugin_group field
|
||||
if (jform_vvvvwanvxd_required)
|
||||
if (jform_vvvvwaqvxe_required)
|
||||
{
|
||||
updateFieldRequired('joomla_plugin_group',0);
|
||||
jQuery('#jform_joomla_plugin_group').prop('required','required');
|
||||
jQuery('#jform_joomla_plugin_group').attr('aria-required',true);
|
||||
jQuery('#jform_joomla_plugin_group').addClass('required');
|
||||
jform_vvvvwanvxd_required = false;
|
||||
jform_vvvvwaqvxe_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_joomla_plugin_group').closest('.control-group').hide();
|
||||
// remove required attribute from joomla_plugin_group field
|
||||
if (!jform_vvvvwanvxd_required)
|
||||
if (!jform_vvvvwaqvxe_required)
|
||||
{
|
||||
updateFieldRequired('joomla_plugin_group',1);
|
||||
jQuery('#jform_joomla_plugin_group').removeAttr('required');
|
||||
jQuery('#jform_joomla_plugin_group').removeAttr('aria-required');
|
||||
jQuery('#jform_joomla_plugin_group').removeClass('required');
|
||||
jform_vvvvwanvxd_required = true;
|
||||
jform_vvvvwaqvxe_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwan Some function
|
||||
function extension_type_vvvvwan_SomeFunc(extension_type_vvvvwan)
|
||||
// the vvvvwaq Some function
|
||||
function extension_type_vvvvwaq_SomeFunc(extension_type_vvvvwaq)
|
||||
{
|
||||
// set the function logic
|
||||
if (extension_type_vvvvwan == 'plugins' || extension_type_vvvvwan == 'plugin')
|
||||
if (extension_type_vvvvwaq == 'plugins' || extension_type_vvvvwaq == 'plugin')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -11,42 +11,42 @@
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var add_php_view_vvvvvyl = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyl(add_php_view_vvvvvyl);
|
||||
var add_php_view_vvvvvyo = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyo(add_php_view_vvvvvyo);
|
||||
|
||||
var add_php_jview_display_vvvvvym = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvvym(add_php_jview_display_vvvvvym);
|
||||
var add_php_jview_display_vvvvvyp = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvvyp(add_php_jview_display_vvvvvyp);
|
||||
|
||||
var add_php_jview_vvvvvyn = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvvyn(add_php_jview_vvvvvyn);
|
||||
var add_php_jview_vvvvvyq = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvvyq(add_php_jview_vvvvvyq);
|
||||
|
||||
var add_php_document_vvvvvyo = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvyo(add_php_document_vvvvvyo);
|
||||
var add_php_document_vvvvvyr = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvyr(add_php_document_vvvvvyr);
|
||||
|
||||
var add_css_document_vvvvvyp = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvvyp(add_css_document_vvvvvyp);
|
||||
var add_css_document_vvvvvys = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvvys(add_css_document_vvvvvys);
|
||||
|
||||
var add_javascript_file_vvvvvyq = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvvyq(add_javascript_file_vvvvvyq);
|
||||
var add_javascript_file_vvvvvyt = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvvyt(add_javascript_file_vvvvvyt);
|
||||
|
||||
var add_js_document_vvvvvyr = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvvyr(add_js_document_vvvvvyr);
|
||||
var add_js_document_vvvvvyu = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvvyu(add_js_document_vvvvvyu);
|
||||
|
||||
var add_custom_button_vvvvvys = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvys(add_custom_button_vvvvvys);
|
||||
var add_custom_button_vvvvvyv = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvyv(add_custom_button_vvvvvyv);
|
||||
|
||||
var add_css_vvvvvyt = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvvyt(add_css_vvvvvyt);
|
||||
var add_css_vvvvvyw = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvvyw(add_css_vvvvvyw);
|
||||
|
||||
var add_php_ajax_vvvvvyu = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvyu(add_php_ajax_vvvvvyu);
|
||||
var add_php_ajax_vvvvvyx = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvyx(add_php_ajax_vvvvvyx);
|
||||
});
|
||||
|
||||
// the vvvvvyl function
|
||||
function vvvvvyl(add_php_view_vvvvvyl)
|
||||
// the vvvvvyo function
|
||||
function vvvvvyo(add_php_view_vvvvvyo)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_view_vvvvvyl == 1)
|
||||
if (add_php_view_vvvvvyo == 1)
|
||||
{
|
||||
jQuery('#jform_php_view-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -56,11 +56,11 @@ function vvvvvyl(add_php_view_vvvvvyl)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvym function
|
||||
function vvvvvym(add_php_jview_display_vvvvvym)
|
||||
// the vvvvvyp function
|
||||
function vvvvvyp(add_php_jview_display_vvvvvyp)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_jview_display_vvvvvym == 1)
|
||||
if (add_php_jview_display_vvvvvyp == 1)
|
||||
{
|
||||
jQuery('#jform_php_jview_display-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -70,11 +70,11 @@ function vvvvvym(add_php_jview_display_vvvvvym)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyn function
|
||||
function vvvvvyn(add_php_jview_vvvvvyn)
|
||||
// the vvvvvyq function
|
||||
function vvvvvyq(add_php_jview_vvvvvyq)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_jview_vvvvvyn == 1)
|
||||
if (add_php_jview_vvvvvyq == 1)
|
||||
{
|
||||
jQuery('#jform_php_jview-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -84,11 +84,11 @@ function vvvvvyn(add_php_jview_vvvvvyn)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyo function
|
||||
function vvvvvyo(add_php_document_vvvvvyo)
|
||||
// the vvvvvyr function
|
||||
function vvvvvyr(add_php_document_vvvvvyr)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_document_vvvvvyo == 1)
|
||||
if (add_php_document_vvvvvyr == 1)
|
||||
{
|
||||
jQuery('#jform_php_document-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -98,11 +98,11 @@ function vvvvvyo(add_php_document_vvvvvyo)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyp function
|
||||
function vvvvvyp(add_css_document_vvvvvyp)
|
||||
// the vvvvvys function
|
||||
function vvvvvys(add_css_document_vvvvvys)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_document_vvvvvyp == 1)
|
||||
if (add_css_document_vvvvvys == 1)
|
||||
{
|
||||
jQuery('#jform_css_document-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -112,11 +112,11 @@ function vvvvvyp(add_css_document_vvvvvyp)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyq function
|
||||
function vvvvvyq(add_javascript_file_vvvvvyq)
|
||||
// the vvvvvyt function
|
||||
function vvvvvyt(add_javascript_file_vvvvvyt)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_javascript_file_vvvvvyq == 1)
|
||||
if (add_javascript_file_vvvvvyt == 1)
|
||||
{
|
||||
jQuery('#jform_javascript_file-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -126,11 +126,11 @@ function vvvvvyq(add_javascript_file_vvvvvyq)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyr function
|
||||
function vvvvvyr(add_js_document_vvvvvyr)
|
||||
// the vvvvvyu function
|
||||
function vvvvvyu(add_js_document_vvvvvyu)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_js_document_vvvvvyr == 1)
|
||||
if (add_js_document_vvvvvyu == 1)
|
||||
{
|
||||
jQuery('#jform_js_document-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -140,11 +140,11 @@ function vvvvvyr(add_js_document_vvvvvyr)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvys function
|
||||
function vvvvvys(add_custom_button_vvvvvys)
|
||||
// the vvvvvyv function
|
||||
function vvvvvyv(add_custom_button_vvvvvyv)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_custom_button_vvvvvys == 1)
|
||||
if (add_custom_button_vvvvvyv == 1)
|
||||
{
|
||||
jQuery('#jform_custom_button-lbl').closest('.control-group').show();
|
||||
jQuery('#jform_php_controller-lbl').closest('.control-group').show();
|
||||
@ -158,11 +158,11 @@ function vvvvvys(add_custom_button_vvvvvys)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyt function
|
||||
function vvvvvyt(add_css_vvvvvyt)
|
||||
// the vvvvvyw function
|
||||
function vvvvvyw(add_css_vvvvvyw)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_vvvvvyt == 1)
|
||||
if (add_css_vvvvvyw == 1)
|
||||
{
|
||||
jQuery('#jform_css-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -172,11 +172,11 @@ function vvvvvyt(add_css_vvvvvyt)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyu function
|
||||
function vvvvvyu(add_php_ajax_vvvvvyu)
|
||||
// the vvvvvyx function
|
||||
function vvvvvyx(add_php_ajax_vvvvvyx)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_ajax_vvvvvyu == 1)
|
||||
if (add_php_ajax_vvvvvyx == 1)
|
||||
{
|
||||
jQuery('#jform_ajax_input-lbl').closest('.control-group').show();
|
||||
jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').show();
|
||||
|
@ -9,44 +9,44 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwajvwz_required = false;
|
||||
jform_vvvvwakvxa_required = false;
|
||||
jform_vvvvwakvxb_required = false;
|
||||
jform_vvvvwakvxc_required = false;
|
||||
jform_vvvvwamvxa_required = false;
|
||||
jform_vvvvwanvxb_required = false;
|
||||
jform_vvvvwanvxc_required = false;
|
||||
jform_vvvvwanvxd_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var target_vvvvwaj = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwaj(target_vvvvwaj);
|
||||
|
||||
var target_vvvvwak = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwak(target_vvvvwak);
|
||||
|
||||
var target_vvvvwal = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwal = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwal(target_vvvvwal,type_vvvvwal);
|
||||
|
||||
var type_vvvvwam = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
var target_vvvvwam = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwam(type_vvvvwam,target_vvvvwam);
|
||||
vvvvwam(target_vvvvwam);
|
||||
|
||||
var target_vvvvwan = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwan(target_vvvvwan);
|
||||
|
||||
var target_vvvvwao = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwao = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwao(target_vvvvwao,type_vvvvwao);
|
||||
|
||||
var type_vvvvwap = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
var target_vvvvwap = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwap(type_vvvvwap,target_vvvvwap);
|
||||
});
|
||||
|
||||
// the vvvvwaj function
|
||||
function vvvvwaj(target_vvvvwaj)
|
||||
// the vvvvwam function
|
||||
function vvvvwam(target_vvvvwam)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvwaj == 2)
|
||||
if (target_vvvvwam == 2)
|
||||
{
|
||||
jQuery('#jform_function_name').closest('.control-group').show();
|
||||
// add required attribute to function_name field
|
||||
if (jform_vvvvwajvwz_required)
|
||||
if (jform_vvvvwamvxa_required)
|
||||
{
|
||||
updateFieldRequired('function_name',0);
|
||||
jQuery('#jform_function_name').prop('required','required');
|
||||
jQuery('#jform_function_name').attr('aria-required',true);
|
||||
jQuery('#jform_function_name').addClass('required');
|
||||
jform_vvvvwajvwz_required = false;
|
||||
jform_vvvvwamvxa_required = false;
|
||||
}
|
||||
jQuery('.note_jcb_placeholder').closest('.control-group').show();
|
||||
jQuery('#jform_system_name').closest('.control-group').show();
|
||||
@ -55,102 +55,102 @@ function vvvvwaj(target_vvvvwaj)
|
||||
{
|
||||
jQuery('#jform_function_name').closest('.control-group').hide();
|
||||
// remove required attribute from function_name field
|
||||
if (!jform_vvvvwajvwz_required)
|
||||
if (!jform_vvvvwamvxa_required)
|
||||
{
|
||||
updateFieldRequired('function_name',1);
|
||||
jQuery('#jform_function_name').removeAttr('required');
|
||||
jQuery('#jform_function_name').removeAttr('aria-required');
|
||||
jQuery('#jform_function_name').removeClass('required');
|
||||
jform_vvvvwajvwz_required = true;
|
||||
jform_vvvvwamvxa_required = true;
|
||||
}
|
||||
jQuery('.note_jcb_placeholder').closest('.control-group').hide();
|
||||
jQuery('#jform_system_name').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwak function
|
||||
function vvvvwak(target_vvvvwak)
|
||||
// the vvvvwan function
|
||||
function vvvvwan(target_vvvvwan)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvwak == 1)
|
||||
if (target_vvvvwan == 1)
|
||||
{
|
||||
jQuery('#jform_component').closest('.control-group').show();
|
||||
// add required attribute to component field
|
||||
if (jform_vvvvwakvxa_required)
|
||||
if (jform_vvvvwanvxb_required)
|
||||
{
|
||||
updateFieldRequired('component',0);
|
||||
jQuery('#jform_component').prop('required','required');
|
||||
jQuery('#jform_component').attr('aria-required',true);
|
||||
jQuery('#jform_component').addClass('required');
|
||||
jform_vvvvwakvxa_required = false;
|
||||
jform_vvvvwanvxb_required = false;
|
||||
}
|
||||
jQuery('#jform_path').closest('.control-group').show();
|
||||
// add required attribute to path field
|
||||
if (jform_vvvvwakvxb_required)
|
||||
if (jform_vvvvwanvxc_required)
|
||||
{
|
||||
updateFieldRequired('path',0);
|
||||
jQuery('#jform_path').prop('required','required');
|
||||
jQuery('#jform_path').attr('aria-required',true);
|
||||
jQuery('#jform_path').addClass('required');
|
||||
jform_vvvvwakvxb_required = false;
|
||||
jform_vvvvwanvxc_required = false;
|
||||
}
|
||||
jQuery('#jform_from_line').closest('.control-group').show();
|
||||
jQuery('#jform_hashtarget').closest('.control-group').show();
|
||||
jQuery('#jform_to_line').closest('.control-group').show();
|
||||
jQuery('#jform_type').closest('.control-group').show();
|
||||
// add required attribute to type field
|
||||
if (jform_vvvvwakvxc_required)
|
||||
if (jform_vvvvwanvxd_required)
|
||||
{
|
||||
updateFieldRequired('type',0);
|
||||
jQuery('#jform_type').prop('required','required');
|
||||
jQuery('#jform_type').attr('aria-required',true);
|
||||
jQuery('#jform_type').addClass('required');
|
||||
jform_vvvvwakvxc_required = false;
|
||||
jform_vvvvwanvxd_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_component').closest('.control-group').hide();
|
||||
// remove required attribute from component field
|
||||
if (!jform_vvvvwakvxa_required)
|
||||
if (!jform_vvvvwanvxb_required)
|
||||
{
|
||||
updateFieldRequired('component',1);
|
||||
jQuery('#jform_component').removeAttr('required');
|
||||
jQuery('#jform_component').removeAttr('aria-required');
|
||||
jQuery('#jform_component').removeClass('required');
|
||||
jform_vvvvwakvxa_required = true;
|
||||
jform_vvvvwanvxb_required = true;
|
||||
}
|
||||
jQuery('#jform_path').closest('.control-group').hide();
|
||||
// remove required attribute from path field
|
||||
if (!jform_vvvvwakvxb_required)
|
||||
if (!jform_vvvvwanvxc_required)
|
||||
{
|
||||
updateFieldRequired('path',1);
|
||||
jQuery('#jform_path').removeAttr('required');
|
||||
jQuery('#jform_path').removeAttr('aria-required');
|
||||
jQuery('#jform_path').removeClass('required');
|
||||
jform_vvvvwakvxb_required = true;
|
||||
jform_vvvvwanvxc_required = true;
|
||||
}
|
||||
jQuery('#jform_from_line').closest('.control-group').hide();
|
||||
jQuery('#jform_hashtarget').closest('.control-group').hide();
|
||||
jQuery('#jform_to_line').closest('.control-group').hide();
|
||||
jQuery('#jform_type').closest('.control-group').hide();
|
||||
// remove required attribute from type field
|
||||
if (!jform_vvvvwakvxc_required)
|
||||
if (!jform_vvvvwanvxd_required)
|
||||
{
|
||||
updateFieldRequired('type',1);
|
||||
jQuery('#jform_type').removeAttr('required');
|
||||
jQuery('#jform_type').removeAttr('aria-required');
|
||||
jQuery('#jform_type').removeClass('required');
|
||||
jform_vvvvwakvxc_required = true;
|
||||
jform_vvvvwanvxd_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwal function
|
||||
function vvvvwal(target_vvvvwal,type_vvvvwal)
|
||||
// the vvvvwao function
|
||||
function vvvvwao(target_vvvvwao,type_vvvvwao)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvwal == 1 && type_vvvvwal == 1)
|
||||
if (target_vvvvwao == 1 && type_vvvvwao == 1)
|
||||
{
|
||||
jQuery('#jform_hashendtarget').closest('.control-group').show();
|
||||
jQuery('#jform_to_line').closest('.control-group').show();
|
||||
@ -162,11 +162,11 @@ function vvvvwal(target_vvvvwal,type_vvvvwal)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwam function
|
||||
function vvvvwam(type_vvvvwam,target_vvvvwam)
|
||||
// the vvvvwap function
|
||||
function vvvvwap(type_vvvvwap,target_vvvvwap)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwam == 1 && target_vvvvwam == 1)
|
||||
if (type_vvvvwap == 1 && target_vvvvwap == 1)
|
||||
{
|
||||
jQuery('#jform_hashendtarget').closest('.control-group').show();
|
||||
jQuery('#jform_to_line').closest('.control-group').show();
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -9,57 +9,57 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwaxvxh_required = false;
|
||||
jform_vvvvwayvxi_required = false;
|
||||
jform_vvvvwazvxj_required = false;
|
||||
jform_vvvvwbavxk_required = false;
|
||||
jform_vvvvwbavxi_required = false;
|
||||
jform_vvvvwbbvxj_required = false;
|
||||
jform_vvvvwbcvxk_required = false;
|
||||
jform_vvvvwbdvxl_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var datalenght_vvvvwax = jQuery("#jform_datalenght").val();
|
||||
vvvvwax(datalenght_vvvvwax);
|
||||
var datalenght_vvvvwba = jQuery("#jform_datalenght").val();
|
||||
vvvvwba(datalenght_vvvvwba);
|
||||
|
||||
var datadefault_vvvvway = jQuery("#jform_datadefault").val();
|
||||
vvvvway(datadefault_vvvvway);
|
||||
var datadefault_vvvvwbb = jQuery("#jform_datadefault").val();
|
||||
vvvvwbb(datadefault_vvvvwbb);
|
||||
|
||||
var datatype_vvvvwaz = jQuery("#jform_datatype").val();
|
||||
vvvvwaz(datatype_vvvvwaz);
|
||||
var datatype_vvvvwbc = jQuery("#jform_datatype").val();
|
||||
vvvvwbc(datatype_vvvvwbc);
|
||||
|
||||
var datatype_vvvvwba = jQuery("#jform_datatype").val();
|
||||
vvvvwba(datatype_vvvvwba);
|
||||
var datatype_vvvvwbd = jQuery("#jform_datatype").val();
|
||||
vvvvwbd(datatype_vvvvwbd);
|
||||
|
||||
var store_vvvvwbb = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbb = jQuery("#jform_datatype").val();
|
||||
vvvvwbb(store_vvvvwbb,datatype_vvvvwbb);
|
||||
var store_vvvvwbe = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbe = jQuery("#jform_datatype").val();
|
||||
vvvvwbe(store_vvvvwbe,datatype_vvvvwbe);
|
||||
|
||||
var add_css_view_vvvvwbd = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvwbd(add_css_view_vvvvwbd);
|
||||
var add_css_view_vvvvwbg = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvwbg(add_css_view_vvvvwbg);
|
||||
|
||||
var add_css_views_vvvvwbe = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvwbe(add_css_views_vvvvwbe);
|
||||
var add_css_views_vvvvwbh = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvwbh(add_css_views_vvvvwbh);
|
||||
|
||||
var add_javascript_view_footer_vvvvwbf = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvwbf(add_javascript_view_footer_vvvvwbf);
|
||||
var add_javascript_view_footer_vvvvwbi = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvwbi(add_javascript_view_footer_vvvvwbi);
|
||||
|
||||
var add_javascript_views_footer_vvvvwbg = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvwbg(add_javascript_views_footer_vvvvwbg);
|
||||
var add_javascript_views_footer_vvvvwbj = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvwbj(add_javascript_views_footer_vvvvwbj);
|
||||
});
|
||||
|
||||
// the vvvvwax function
|
||||
function vvvvwax(datalenght_vvvvwax)
|
||||
// the vvvvwba function
|
||||
function vvvvwba(datalenght_vvvvwba)
|
||||
{
|
||||
if (isSet(datalenght_vvvvwax) && datalenght_vvvvwax.constructor !== Array)
|
||||
if (isSet(datalenght_vvvvwba) && datalenght_vvvvwba.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwax = datalenght_vvvvwax;
|
||||
var datalenght_vvvvwax = [];
|
||||
datalenght_vvvvwax.push(temp_vvvvwax);
|
||||
var temp_vvvvwba = datalenght_vvvvwba;
|
||||
var datalenght_vvvvwba = [];
|
||||
datalenght_vvvvwba.push(temp_vvvvwba);
|
||||
}
|
||||
else if (!isSet(datalenght_vvvvwax))
|
||||
else if (!isSet(datalenght_vvvvwba))
|
||||
{
|
||||
var datalenght_vvvvwax = [];
|
||||
var datalenght_vvvvwba = [];
|
||||
}
|
||||
var datalenght = datalenght_vvvvwax.some(datalenght_vvvvwax_SomeFunc);
|
||||
var datalenght = datalenght_vvvvwba.some(datalenght_vvvvwba_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -67,55 +67,55 @@ function vvvvwax(datalenght_vvvvwax)
|
||||
{
|
||||
jQuery('#jform_datalenght_other').closest('.control-group').show();
|
||||
// add required attribute to datalenght_other field
|
||||
if (jform_vvvvwaxvxh_required)
|
||||
if (jform_vvvvwbavxi_required)
|
||||
{
|
||||
updateFieldRequired('datalenght_other',0);
|
||||
jQuery('#jform_datalenght_other').prop('required','required');
|
||||
jQuery('#jform_datalenght_other').attr('aria-required',true);
|
||||
jQuery('#jform_datalenght_other').addClass('required');
|
||||
jform_vvvvwaxvxh_required = false;
|
||||
jform_vvvvwbavxi_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_datalenght_other').closest('.control-group').hide();
|
||||
// remove required attribute from datalenght_other field
|
||||
if (!jform_vvvvwaxvxh_required)
|
||||
if (!jform_vvvvwbavxi_required)
|
||||
{
|
||||
updateFieldRequired('datalenght_other',1);
|
||||
jQuery('#jform_datalenght_other').removeAttr('required');
|
||||
jQuery('#jform_datalenght_other').removeAttr('aria-required');
|
||||
jQuery('#jform_datalenght_other').removeClass('required');
|
||||
jform_vvvvwaxvxh_required = true;
|
||||
jform_vvvvwbavxi_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwax Some function
|
||||
function datalenght_vvvvwax_SomeFunc(datalenght_vvvvwax)
|
||||
// the vvvvwba Some function
|
||||
function datalenght_vvvvwba_SomeFunc(datalenght_vvvvwba)
|
||||
{
|
||||
// set the function logic
|
||||
if (datalenght_vvvvwax == 'Other')
|
||||
if (datalenght_vvvvwba == 'Other')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvway function
|
||||
function vvvvway(datadefault_vvvvway)
|
||||
// the vvvvwbb function
|
||||
function vvvvwbb(datadefault_vvvvwbb)
|
||||
{
|
||||
if (isSet(datadefault_vvvvway) && datadefault_vvvvway.constructor !== Array)
|
||||
if (isSet(datadefault_vvvvwbb) && datadefault_vvvvwbb.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvway = datadefault_vvvvway;
|
||||
var datadefault_vvvvway = [];
|
||||
datadefault_vvvvway.push(temp_vvvvway);
|
||||
var temp_vvvvwbb = datadefault_vvvvwbb;
|
||||
var datadefault_vvvvwbb = [];
|
||||
datadefault_vvvvwbb.push(temp_vvvvwbb);
|
||||
}
|
||||
else if (!isSet(datadefault_vvvvway))
|
||||
else if (!isSet(datadefault_vvvvwbb))
|
||||
{
|
||||
var datadefault_vvvvway = [];
|
||||
var datadefault_vvvvwbb = [];
|
||||
}
|
||||
var datadefault = datadefault_vvvvway.some(datadefault_vvvvway_SomeFunc);
|
||||
var datadefault = datadefault_vvvvwbb.some(datadefault_vvvvwbb_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -123,55 +123,55 @@ function vvvvway(datadefault_vvvvway)
|
||||
{
|
||||
jQuery('#jform_datadefault_other').closest('.control-group').show();
|
||||
// add required attribute to datadefault_other field
|
||||
if (jform_vvvvwayvxi_required)
|
||||
if (jform_vvvvwbbvxj_required)
|
||||
{
|
||||
updateFieldRequired('datadefault_other',0);
|
||||
jQuery('#jform_datadefault_other').prop('required','required');
|
||||
jQuery('#jform_datadefault_other').attr('aria-required',true);
|
||||
jQuery('#jform_datadefault_other').addClass('required');
|
||||
jform_vvvvwayvxi_required = false;
|
||||
jform_vvvvwbbvxj_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_datadefault_other').closest('.control-group').hide();
|
||||
// remove required attribute from datadefault_other field
|
||||
if (!jform_vvvvwayvxi_required)
|
||||
if (!jform_vvvvwbbvxj_required)
|
||||
{
|
||||
updateFieldRequired('datadefault_other',1);
|
||||
jQuery('#jform_datadefault_other').removeAttr('required');
|
||||
jQuery('#jform_datadefault_other').removeAttr('aria-required');
|
||||
jQuery('#jform_datadefault_other').removeClass('required');
|
||||
jform_vvvvwayvxi_required = true;
|
||||
jform_vvvvwbbvxj_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvway Some function
|
||||
function datadefault_vvvvway_SomeFunc(datadefault_vvvvway)
|
||||
// the vvvvwbb Some function
|
||||
function datadefault_vvvvwbb_SomeFunc(datadefault_vvvvwbb)
|
||||
{
|
||||
// set the function logic
|
||||
if (datadefault_vvvvway == 'Other')
|
||||
if (datadefault_vvvvwbb == 'Other')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwaz function
|
||||
function vvvvwaz(datatype_vvvvwaz)
|
||||
// the vvvvwbc function
|
||||
function vvvvwbc(datatype_vvvvwbc)
|
||||
{
|
||||
if (isSet(datatype_vvvvwaz) && datatype_vvvvwaz.constructor !== Array)
|
||||
if (isSet(datatype_vvvvwbc) && datatype_vvvvwbc.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwaz = datatype_vvvvwaz;
|
||||
var datatype_vvvvwaz = [];
|
||||
datatype_vvvvwaz.push(temp_vvvvwaz);
|
||||
var temp_vvvvwbc = datatype_vvvvwbc;
|
||||
var datatype_vvvvwbc = [];
|
||||
datatype_vvvvwbc.push(temp_vvvvwbc);
|
||||
}
|
||||
else if (!isSet(datatype_vvvvwaz))
|
||||
else if (!isSet(datatype_vvvvwbc))
|
||||
{
|
||||
var datatype_vvvvwaz = [];
|
||||
var datatype_vvvvwbc = [];
|
||||
}
|
||||
var datatype = datatype_vvvvwaz.some(datatype_vvvvwaz_SomeFunc);
|
||||
var datatype = datatype_vvvvwbc.some(datatype_vvvvwbc_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -181,13 +181,13 @@ function vvvvwaz(datatype_vvvvwaz)
|
||||
jQuery('#jform_datalenght').closest('.control-group').show();
|
||||
jQuery('#jform_indexes').closest('.control-group').show();
|
||||
// add required attribute to indexes field
|
||||
if (jform_vvvvwazvxj_required)
|
||||
if (jform_vvvvwbcvxk_required)
|
||||
{
|
||||
updateFieldRequired('indexes',0);
|
||||
jQuery('#jform_indexes').prop('required','required');
|
||||
jQuery('#jform_indexes').attr('aria-required',true);
|
||||
jQuery('#jform_indexes').addClass('required');
|
||||
jform_vvvvwazvxj_required = false;
|
||||
jform_vvvvwbcvxk_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -196,42 +196,42 @@ function vvvvwaz(datatype_vvvvwaz)
|
||||
jQuery('#jform_datalenght').closest('.control-group').hide();
|
||||
jQuery('#jform_indexes').closest('.control-group').hide();
|
||||
// remove required attribute from indexes field
|
||||
if (!jform_vvvvwazvxj_required)
|
||||
if (!jform_vvvvwbcvxk_required)
|
||||
{
|
||||
updateFieldRequired('indexes',1);
|
||||
jQuery('#jform_indexes').removeAttr('required');
|
||||
jQuery('#jform_indexes').removeAttr('aria-required');
|
||||
jQuery('#jform_indexes').removeClass('required');
|
||||
jform_vvvvwazvxj_required = true;
|
||||
jform_vvvvwbcvxk_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwaz Some function
|
||||
function datatype_vvvvwaz_SomeFunc(datatype_vvvvwaz)
|
||||
// the vvvvwbc Some function
|
||||
function datatype_vvvvwbc_SomeFunc(datatype_vvvvwbc)
|
||||
{
|
||||
// set the function logic
|
||||
if (datatype_vvvvwaz == 'CHAR' || datatype_vvvvwaz == 'VARCHAR' || datatype_vvvvwaz == 'DATETIME' || datatype_vvvvwaz == 'DATE' || datatype_vvvvwaz == 'TIME' || datatype_vvvvwaz == 'INT' || datatype_vvvvwaz == 'TINYINT' || datatype_vvvvwaz == 'BIGINT' || datatype_vvvvwaz == 'FLOAT' || datatype_vvvvwaz == 'DECIMAL' || datatype_vvvvwaz == 'DOUBLE')
|
||||
if (datatype_vvvvwbc == 'CHAR' || datatype_vvvvwbc == 'VARCHAR' || datatype_vvvvwbc == 'DATETIME' || datatype_vvvvwbc == 'DATE' || datatype_vvvvwbc == 'TIME' || datatype_vvvvwbc == 'INT' || datatype_vvvvwbc == 'TINYINT' || datatype_vvvvwbc == 'BIGINT' || datatype_vvvvwbc == 'FLOAT' || datatype_vvvvwbc == 'DECIMAL' || datatype_vvvvwbc == 'DOUBLE')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwba function
|
||||
function vvvvwba(datatype_vvvvwba)
|
||||
// the vvvvwbd function
|
||||
function vvvvwbd(datatype_vvvvwbd)
|
||||
{
|
||||
if (isSet(datatype_vvvvwba) && datatype_vvvvwba.constructor !== Array)
|
||||
if (isSet(datatype_vvvvwbd) && datatype_vvvvwbd.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwba = datatype_vvvvwba;
|
||||
var datatype_vvvvwba = [];
|
||||
datatype_vvvvwba.push(temp_vvvvwba);
|
||||
var temp_vvvvwbd = datatype_vvvvwbd;
|
||||
var datatype_vvvvwbd = [];
|
||||
datatype_vvvvwbd.push(temp_vvvvwbd);
|
||||
}
|
||||
else if (!isSet(datatype_vvvvwba))
|
||||
else if (!isSet(datatype_vvvvwbd))
|
||||
{
|
||||
var datatype_vvvvwba = [];
|
||||
var datatype_vvvvwbd = [];
|
||||
}
|
||||
var datatype = datatype_vvvvwba.some(datatype_vvvvwba_SomeFunc);
|
||||
var datatype = datatype_vvvvwbd.some(datatype_vvvvwbd_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -239,67 +239,67 @@ function vvvvwba(datatype_vvvvwba)
|
||||
{
|
||||
jQuery('#jform_store').closest('.control-group').show();
|
||||
// add required attribute to store field
|
||||
if (jform_vvvvwbavxk_required)
|
||||
if (jform_vvvvwbdvxl_required)
|
||||
{
|
||||
updateFieldRequired('store',0);
|
||||
jQuery('#jform_store').prop('required','required');
|
||||
jQuery('#jform_store').attr('aria-required',true);
|
||||
jQuery('#jform_store').addClass('required');
|
||||
jform_vvvvwbavxk_required = false;
|
||||
jform_vvvvwbdvxl_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_store').closest('.control-group').hide();
|
||||
// remove required attribute from store field
|
||||
if (!jform_vvvvwbavxk_required)
|
||||
if (!jform_vvvvwbdvxl_required)
|
||||
{
|
||||
updateFieldRequired('store',1);
|
||||
jQuery('#jform_store').removeAttr('required');
|
||||
jQuery('#jform_store').removeAttr('aria-required');
|
||||
jQuery('#jform_store').removeClass('required');
|
||||
jform_vvvvwbavxk_required = true;
|
||||
jform_vvvvwbdvxl_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwba Some function
|
||||
function datatype_vvvvwba_SomeFunc(datatype_vvvvwba)
|
||||
// the vvvvwbd Some function
|
||||
function datatype_vvvvwbd_SomeFunc(datatype_vvvvwbd)
|
||||
{
|
||||
// set the function logic
|
||||
if (datatype_vvvvwba == 'CHAR' || datatype_vvvvwba == 'VARCHAR' || datatype_vvvvwba == 'TEXT' || datatype_vvvvwba == 'MEDIUMTEXT' || datatype_vvvvwba == 'LONGTEXT' || datatype_vvvvwba == 'BLOB' || datatype_vvvvwba == 'TINYBLOB' || datatype_vvvvwba == 'MEDIUMBLOB' || datatype_vvvvwba == 'LONGBLOB')
|
||||
if (datatype_vvvvwbd == 'CHAR' || datatype_vvvvwbd == 'VARCHAR' || datatype_vvvvwbd == 'TEXT' || datatype_vvvvwbd == 'MEDIUMTEXT' || datatype_vvvvwbd == 'LONGTEXT' || datatype_vvvvwbd == 'BLOB' || datatype_vvvvwbd == 'TINYBLOB' || datatype_vvvvwbd == 'MEDIUMBLOB' || datatype_vvvvwbd == 'LONGBLOB')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbb function
|
||||
function vvvvwbb(store_vvvvwbb,datatype_vvvvwbb)
|
||||
// the vvvvwbe function
|
||||
function vvvvwbe(store_vvvvwbe,datatype_vvvvwbe)
|
||||
{
|
||||
if (isSet(store_vvvvwbb) && store_vvvvwbb.constructor !== Array)
|
||||
if (isSet(store_vvvvwbe) && store_vvvvwbe.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbb = store_vvvvwbb;
|
||||
var store_vvvvwbb = [];
|
||||
store_vvvvwbb.push(temp_vvvvwbb);
|
||||
var temp_vvvvwbe = store_vvvvwbe;
|
||||
var store_vvvvwbe = [];
|
||||
store_vvvvwbe.push(temp_vvvvwbe);
|
||||
}
|
||||
else if (!isSet(store_vvvvwbb))
|
||||
else if (!isSet(store_vvvvwbe))
|
||||
{
|
||||
var store_vvvvwbb = [];
|
||||
var store_vvvvwbe = [];
|
||||
}
|
||||
var store = store_vvvvwbb.some(store_vvvvwbb_SomeFunc);
|
||||
var store = store_vvvvwbe.some(store_vvvvwbe_SomeFunc);
|
||||
|
||||
if (isSet(datatype_vvvvwbb) && datatype_vvvvwbb.constructor !== Array)
|
||||
if (isSet(datatype_vvvvwbe) && datatype_vvvvwbe.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbb = datatype_vvvvwbb;
|
||||
var datatype_vvvvwbb = [];
|
||||
datatype_vvvvwbb.push(temp_vvvvwbb);
|
||||
var temp_vvvvwbe = datatype_vvvvwbe;
|
||||
var datatype_vvvvwbe = [];
|
||||
datatype_vvvvwbe.push(temp_vvvvwbe);
|
||||
}
|
||||
else if (!isSet(datatype_vvvvwbb))
|
||||
else if (!isSet(datatype_vvvvwbe))
|
||||
{
|
||||
var datatype_vvvvwbb = [];
|
||||
var datatype_vvvvwbe = [];
|
||||
}
|
||||
var datatype = datatype_vvvvwbb.some(datatype_vvvvwbb_SomeFunc);
|
||||
var datatype = datatype_vvvvwbe.some(datatype_vvvvwbe_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -313,33 +313,33 @@ function vvvvwbb(store_vvvvwbb,datatype_vvvvwbb)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbb Some function
|
||||
function store_vvvvwbb_SomeFunc(store_vvvvwbb)
|
||||
// the vvvvwbe Some function
|
||||
function store_vvvvwbe_SomeFunc(store_vvvvwbe)
|
||||
{
|
||||
// set the function logic
|
||||
if (store_vvvvwbb == 4)
|
||||
if (store_vvvvwbe == 4)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbb Some function
|
||||
function datatype_vvvvwbb_SomeFunc(datatype_vvvvwbb)
|
||||
// the vvvvwbe Some function
|
||||
function datatype_vvvvwbe_SomeFunc(datatype_vvvvwbe)
|
||||
{
|
||||
// set the function logic
|
||||
if (datatype_vvvvwbb == 'CHAR' || datatype_vvvvwbb == 'VARCHAR' || datatype_vvvvwbb == 'TEXT' || datatype_vvvvwbb == 'MEDIUMTEXT' || datatype_vvvvwbb == 'LONGTEXT' || datatype_vvvvwbb == 'BLOB' || datatype_vvvvwbb == 'TINYBLOB' || datatype_vvvvwbb == 'MEDIUMBLOB' || datatype_vvvvwbb == 'LONGBLOB')
|
||||
if (datatype_vvvvwbe == 'CHAR' || datatype_vvvvwbe == 'VARCHAR' || datatype_vvvvwbe == 'TEXT' || datatype_vvvvwbe == 'MEDIUMTEXT' || datatype_vvvvwbe == 'LONGTEXT' || datatype_vvvvwbe == 'BLOB' || datatype_vvvvwbe == 'TINYBLOB' || datatype_vvvvwbe == 'MEDIUMBLOB' || datatype_vvvvwbe == 'LONGBLOB')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbd function
|
||||
function vvvvwbd(add_css_view_vvvvwbd)
|
||||
// the vvvvwbg function
|
||||
function vvvvwbg(add_css_view_vvvvwbg)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_view_vvvvwbd == 1)
|
||||
if (add_css_view_vvvvwbg == 1)
|
||||
{
|
||||
jQuery('#jform_css_view-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -349,11 +349,11 @@ function vvvvwbd(add_css_view_vvvvwbd)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbe function
|
||||
function vvvvwbe(add_css_views_vvvvwbe)
|
||||
// the vvvvwbh function
|
||||
function vvvvwbh(add_css_views_vvvvwbh)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_views_vvvvwbe == 1)
|
||||
if (add_css_views_vvvvwbh == 1)
|
||||
{
|
||||
jQuery('#jform_css_views-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -363,11 +363,11 @@ function vvvvwbe(add_css_views_vvvvwbe)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbf function
|
||||
function vvvvwbf(add_javascript_view_footer_vvvvwbf)
|
||||
// the vvvvwbi function
|
||||
function vvvvwbi(add_javascript_view_footer_vvvvwbi)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_javascript_view_footer_vvvvwbf == 1)
|
||||
if (add_javascript_view_footer_vvvvwbi == 1)
|
||||
{
|
||||
jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -377,11 +377,11 @@ function vvvvwbf(add_javascript_view_footer_vvvvwbf)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbg function
|
||||
function vvvvwbg(add_javascript_views_footer_vvvvwbg)
|
||||
// the vvvvwbj function
|
||||
function vvvvwbj(add_javascript_views_footer_vvvvwbj)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_javascript_views_footer_vvvvwbg == 1)
|
||||
if (add_javascript_views_footer_vvvvwbj == 1)
|
||||
{
|
||||
jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').show();
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -9,112 +9,112 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwcdvyd_required = false;
|
||||
jform_vvvvwcevye_required = false;
|
||||
jform_vvvvwcfvyf_required = false;
|
||||
jform_vvvvwcgvyg_required = false;
|
||||
jform_vvvvwcivyh_required = false;
|
||||
jform_vvvvwcgvye_required = false;
|
||||
jform_vvvvwchvyf_required = false;
|
||||
jform_vvvvwcivyg_required = false;
|
||||
jform_vvvvwcjvyh_required = false;
|
||||
jform_vvvvwclvyi_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var location_vvvvwcd = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwcd(location_vvvvwcd);
|
||||
var location_vvvvwcg = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwcg(location_vvvvwcg);
|
||||
|
||||
var location_vvvvwce = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwce(location_vvvvwce);
|
||||
var location_vvvvwch = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwch(location_vvvvwch);
|
||||
|
||||
var type_vvvvwcf = jQuery("#jform_type").val();
|
||||
vvvvwcf(type_vvvvwcf);
|
||||
var type_vvvvwci = jQuery("#jform_type").val();
|
||||
vvvvwci(type_vvvvwci);
|
||||
|
||||
var type_vvvvwcg = jQuery("#jform_type").val();
|
||||
vvvvwcg(type_vvvvwcg);
|
||||
var type_vvvvwcj = jQuery("#jform_type").val();
|
||||
vvvvwcj(type_vvvvwcj);
|
||||
|
||||
var type_vvvvwch = jQuery("#jform_type").val();
|
||||
vvvvwch(type_vvvvwch);
|
||||
var type_vvvvwck = jQuery("#jform_type").val();
|
||||
vvvvwck(type_vvvvwck);
|
||||
|
||||
var target_vvvvwci = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwci(target_vvvvwci);
|
||||
var target_vvvvwcl = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcl(target_vvvvwcl);
|
||||
});
|
||||
|
||||
// the vvvvwcd function
|
||||
function vvvvwcd(location_vvvvwcd)
|
||||
// the vvvvwcg function
|
||||
function vvvvwcg(location_vvvvwcg)
|
||||
{
|
||||
// set the function logic
|
||||
if (location_vvvvwcd == 1)
|
||||
if (location_vvvvwcg == 1)
|
||||
{
|
||||
jQuery('#jform_admin_view').closest('.control-group').show();
|
||||
// add required attribute to admin_view field
|
||||
if (jform_vvvvwcdvyd_required)
|
||||
if (jform_vvvvwcgvye_required)
|
||||
{
|
||||
updateFieldRequired('admin_view',0);
|
||||
jQuery('#jform_admin_view').prop('required','required');
|
||||
jQuery('#jform_admin_view').attr('aria-required',true);
|
||||
jQuery('#jform_admin_view').addClass('required');
|
||||
jform_vvvvwcdvyd_required = false;
|
||||
jform_vvvvwcgvye_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_admin_view').closest('.control-group').hide();
|
||||
// remove required attribute from admin_view field
|
||||
if (!jform_vvvvwcdvyd_required)
|
||||
if (!jform_vvvvwcgvye_required)
|
||||
{
|
||||
updateFieldRequired('admin_view',1);
|
||||
jQuery('#jform_admin_view').removeAttr('required');
|
||||
jQuery('#jform_admin_view').removeAttr('aria-required');
|
||||
jQuery('#jform_admin_view').removeClass('required');
|
||||
jform_vvvvwcdvyd_required = true;
|
||||
jform_vvvvwcgvye_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwce function
|
||||
function vvvvwce(location_vvvvwce)
|
||||
// the vvvvwch function
|
||||
function vvvvwch(location_vvvvwch)
|
||||
{
|
||||
// set the function logic
|
||||
if (location_vvvvwce == 2)
|
||||
if (location_vvvvwch == 2)
|
||||
{
|
||||
jQuery('#jform_site_view').closest('.control-group').show();
|
||||
// add required attribute to site_view field
|
||||
if (jform_vvvvwcevye_required)
|
||||
if (jform_vvvvwchvyf_required)
|
||||
{
|
||||
updateFieldRequired('site_view',0);
|
||||
jQuery('#jform_site_view').prop('required','required');
|
||||
jQuery('#jform_site_view').attr('aria-required',true);
|
||||
jQuery('#jform_site_view').addClass('required');
|
||||
jform_vvvvwcevye_required = false;
|
||||
jform_vvvvwchvyf_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_site_view').closest('.control-group').hide();
|
||||
// remove required attribute from site_view field
|
||||
if (!jform_vvvvwcevye_required)
|
||||
if (!jform_vvvvwchvyf_required)
|
||||
{
|
||||
updateFieldRequired('site_view',1);
|
||||
jQuery('#jform_site_view').removeAttr('required');
|
||||
jQuery('#jform_site_view').removeAttr('aria-required');
|
||||
jQuery('#jform_site_view').removeClass('required');
|
||||
jform_vvvvwcevye_required = true;
|
||||
jform_vvvvwchvyf_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwcf function
|
||||
function vvvvwcf(type_vvvvwcf)
|
||||
// the vvvvwci function
|
||||
function vvvvwci(type_vvvvwci)
|
||||
{
|
||||
if (isSet(type_vvvvwcf) && type_vvvvwcf.constructor !== Array)
|
||||
if (isSet(type_vvvvwci) && type_vvvvwci.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwcf = type_vvvvwcf;
|
||||
var type_vvvvwcf = [];
|
||||
type_vvvvwcf.push(temp_vvvvwcf);
|
||||
var temp_vvvvwci = type_vvvvwci;
|
||||
var type_vvvvwci = [];
|
||||
type_vvvvwci.push(temp_vvvvwci);
|
||||
}
|
||||
else if (!isSet(type_vvvvwcf))
|
||||
else if (!isSet(type_vvvvwci))
|
||||
{
|
||||
var type_vvvvwcf = [];
|
||||
var type_vvvvwci = [];
|
||||
}
|
||||
var type = type_vvvvwcf.some(type_vvvvwcf_SomeFunc);
|
||||
var type = type_vvvvwci.some(type_vvvvwci_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -122,55 +122,55 @@ function vvvvwcf(type_vvvvwcf)
|
||||
{
|
||||
jQuery('#jform_url').closest('.control-group').show();
|
||||
// add required attribute to url field
|
||||
if (jform_vvvvwcfvyf_required)
|
||||
if (jform_vvvvwcivyg_required)
|
||||
{
|
||||
updateFieldRequired('url',0);
|
||||
jQuery('#jform_url').prop('required','required');
|
||||
jQuery('#jform_url').attr('aria-required',true);
|
||||
jQuery('#jform_url').addClass('required');
|
||||
jform_vvvvwcfvyf_required = false;
|
||||
jform_vvvvwcivyg_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_url').closest('.control-group').hide();
|
||||
// remove required attribute from url field
|
||||
if (!jform_vvvvwcfvyf_required)
|
||||
if (!jform_vvvvwcivyg_required)
|
||||
{
|
||||
updateFieldRequired('url',1);
|
||||
jQuery('#jform_url').removeAttr('required');
|
||||
jQuery('#jform_url').removeAttr('aria-required');
|
||||
jQuery('#jform_url').removeClass('required');
|
||||
jform_vvvvwcfvyf_required = true;
|
||||
jform_vvvvwcivyg_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwcf Some function
|
||||
function type_vvvvwcf_SomeFunc(type_vvvvwcf)
|
||||
// the vvvvwci Some function
|
||||
function type_vvvvwci_SomeFunc(type_vvvvwci)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwcf == 3)
|
||||
if (type_vvvvwci == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwcg function
|
||||
function vvvvwcg(type_vvvvwcg)
|
||||
// the vvvvwcj function
|
||||
function vvvvwcj(type_vvvvwcj)
|
||||
{
|
||||
if (isSet(type_vvvvwcg) && type_vvvvwcg.constructor !== Array)
|
||||
if (isSet(type_vvvvwcj) && type_vvvvwcj.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwcg = type_vvvvwcg;
|
||||
var type_vvvvwcg = [];
|
||||
type_vvvvwcg.push(temp_vvvvwcg);
|
||||
var temp_vvvvwcj = type_vvvvwcj;
|
||||
var type_vvvvwcj = [];
|
||||
type_vvvvwcj.push(temp_vvvvwcj);
|
||||
}
|
||||
else if (!isSet(type_vvvvwcg))
|
||||
else if (!isSet(type_vvvvwcj))
|
||||
{
|
||||
var type_vvvvwcg = [];
|
||||
var type_vvvvwcj = [];
|
||||
}
|
||||
var type = type_vvvvwcg.some(type_vvvvwcg_SomeFunc);
|
||||
var type = type_vvvvwcj.some(type_vvvvwcj_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -178,55 +178,55 @@ function vvvvwcg(type_vvvvwcg)
|
||||
{
|
||||
jQuery('#jform_article').closest('.control-group').show();
|
||||
// add required attribute to article field
|
||||
if (jform_vvvvwcgvyg_required)
|
||||
if (jform_vvvvwcjvyh_required)
|
||||
{
|
||||
updateFieldRequired('article',0);
|
||||
jQuery('#jform_article').prop('required','required');
|
||||
jQuery('#jform_article').attr('aria-required',true);
|
||||
jQuery('#jform_article').addClass('required');
|
||||
jform_vvvvwcgvyg_required = false;
|
||||
jform_vvvvwcjvyh_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_article').closest('.control-group').hide();
|
||||
// remove required attribute from article field
|
||||
if (!jform_vvvvwcgvyg_required)
|
||||
if (!jform_vvvvwcjvyh_required)
|
||||
{
|
||||
updateFieldRequired('article',1);
|
||||
jQuery('#jform_article').removeAttr('required');
|
||||
jQuery('#jform_article').removeAttr('aria-required');
|
||||
jQuery('#jform_article').removeClass('required');
|
||||
jform_vvvvwcgvyg_required = true;
|
||||
jform_vvvvwcjvyh_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwcg Some function
|
||||
function type_vvvvwcg_SomeFunc(type_vvvvwcg)
|
||||
// the vvvvwcj Some function
|
||||
function type_vvvvwcj_SomeFunc(type_vvvvwcj)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwcg == 1)
|
||||
if (type_vvvvwcj == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwch function
|
||||
function vvvvwch(type_vvvvwch)
|
||||
// the vvvvwck function
|
||||
function vvvvwck(type_vvvvwck)
|
||||
{
|
||||
if (isSet(type_vvvvwch) && type_vvvvwch.constructor !== Array)
|
||||
if (isSet(type_vvvvwck) && type_vvvvwck.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwch = type_vvvvwch;
|
||||
var type_vvvvwch = [];
|
||||
type_vvvvwch.push(temp_vvvvwch);
|
||||
var temp_vvvvwck = type_vvvvwck;
|
||||
var type_vvvvwck = [];
|
||||
type_vvvvwck.push(temp_vvvvwck);
|
||||
}
|
||||
else if (!isSet(type_vvvvwch))
|
||||
else if (!isSet(type_vvvvwck))
|
||||
{
|
||||
var type_vvvvwch = [];
|
||||
var type_vvvvwck = [];
|
||||
}
|
||||
var type = type_vvvvwch.some(type_vvvvwch_SomeFunc);
|
||||
var type = type_vvvvwck.some(type_vvvvwck_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -240,45 +240,45 @@ function vvvvwch(type_vvvvwch)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwch Some function
|
||||
function type_vvvvwch_SomeFunc(type_vvvvwch)
|
||||
// the vvvvwck Some function
|
||||
function type_vvvvwck_SomeFunc(type_vvvvwck)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwch == 2)
|
||||
if (type_vvvvwck == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwci function
|
||||
function vvvvwci(target_vvvvwci)
|
||||
// the vvvvwcl function
|
||||
function vvvvwcl(target_vvvvwcl)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvwci == 1)
|
||||
if (target_vvvvwcl == 1)
|
||||
{
|
||||
jQuery('#jform_groups').closest('.control-group').show();
|
||||
// add required attribute to groups field
|
||||
if (jform_vvvvwcivyh_required)
|
||||
if (jform_vvvvwclvyi_required)
|
||||
{
|
||||
updateFieldRequired('groups',0);
|
||||
jQuery('#jform_groups').prop('required','required');
|
||||
jQuery('#jform_groups').attr('aria-required',true);
|
||||
jQuery('#jform_groups').addClass('required');
|
||||
jform_vvvvwcivyh_required = false;
|
||||
jform_vvvvwclvyi_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_groups').closest('.control-group').hide();
|
||||
// remove required attribute from groups field
|
||||
if (!jform_vvvvwcivyh_required)
|
||||
if (!jform_vvvvwclvyi_required)
|
||||
{
|
||||
updateFieldRequired('groups',1);
|
||||
jQuery('#jform_groups').removeAttr('required');
|
||||
jQuery('#jform_groups').removeAttr('aria-required');
|
||||
jQuery('#jform_groups').removeClass('required');
|
||||
jform_vvvvwcivyh_required = true;
|
||||
jform_vvvvwclvyi_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -8,6 +8,9 @@
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvvxevwd_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
@ -18,6 +21,13 @@ jQuery(document).ready(function()
|
||||
var joomla_plugin_group_vvvvvxc = jQuery("#jform_joomla_plugin_group").val();
|
||||
var class_extends_vvvvvxc = jQuery("#jform_class_extends").val();
|
||||
vvvvvxc(joomla_plugin_group_vvvvvxc,class_extends_vvvvvxc);
|
||||
|
||||
var class_extends_vvvvvxd = jQuery("#jform_class_extends").val();
|
||||
vvvvvxd(class_extends_vvvvvxd);
|
||||
|
||||
var add_head_vvvvvxe = jQuery("#jform_add_head input[type='radio']:checked").val();
|
||||
var class_extends_vvvvvxe = jQuery("#jform_class_extends").val();
|
||||
vvvvvxe(add_head_vvvvvxe,class_extends_vvvvvxe);
|
||||
});
|
||||
|
||||
// the vvvvvxb function
|
||||
@ -150,6 +160,150 @@ function class_extends_vvvvvxc_SomeFunc(class_extends_vvvvvxc)
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvvxd function
|
||||
function vvvvvxd(class_extends_vvvvvxd)
|
||||
{
|
||||
if (isSet(class_extends_vvvvvxd) && class_extends_vvvvvxd.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvvxd = class_extends_vvvvvxd;
|
||||
var class_extends_vvvvvxd = [];
|
||||
class_extends_vvvvvxd.push(temp_vvvvvxd);
|
||||
}
|
||||
else if (!isSet(class_extends_vvvvvxd))
|
||||
{
|
||||
var class_extends_vvvvvxd = [];
|
||||
}
|
||||
var class_extends = class_extends_vvvvvxd.some(class_extends_vvvvvxd_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (class_extends)
|
||||
{
|
||||
jQuery('#jform_add_head').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_add_head').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvxd Some function
|
||||
function class_extends_vvvvvxd_SomeFunc(class_extends_vvvvvxd)
|
||||
{
|
||||
// set the function logic
|
||||
if (isSet(class_extends_vvvvvxd))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvvxe function
|
||||
function vvvvvxe(add_head_vvvvvxe,class_extends_vvvvvxe)
|
||||
{
|
||||
if (isSet(add_head_vvvvvxe) && add_head_vvvvvxe.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvvxe = add_head_vvvvvxe;
|
||||
var add_head_vvvvvxe = [];
|
||||
add_head_vvvvvxe.push(temp_vvvvvxe);
|
||||
}
|
||||
else if (!isSet(add_head_vvvvvxe))
|
||||
{
|
||||
var add_head_vvvvvxe = [];
|
||||
}
|
||||
var add_head = add_head_vvvvvxe.some(add_head_vvvvvxe_SomeFunc);
|
||||
|
||||
if (isSet(class_extends_vvvvvxe) && class_extends_vvvvvxe.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvvxe = class_extends_vvvvvxe;
|
||||
var class_extends_vvvvvxe = [];
|
||||
class_extends_vvvvvxe.push(temp_vvvvvxe);
|
||||
}
|
||||
else if (!isSet(class_extends_vvvvvxe))
|
||||
{
|
||||
var class_extends_vvvvvxe = [];
|
||||
}
|
||||
var class_extends = class_extends_vvvvvxe.some(class_extends_vvvvvxe_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (add_head && class_extends)
|
||||
{
|
||||
jQuery('#jform_head-lbl').closest('.control-group').show();
|
||||
// add required attribute to head field
|
||||
if (jform_vvvvvxevwd_required)
|
||||
{
|
||||
updateFieldRequired('head',0);
|
||||
jQuery('#jform_head').prop('required','required');
|
||||
jQuery('#jform_head').attr('aria-required',true);
|
||||
jQuery('#jform_head').addClass('required');
|
||||
jform_vvvvvxevwd_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_head-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from head field
|
||||
if (!jform_vvvvvxevwd_required)
|
||||
{
|
||||
updateFieldRequired('head',1);
|
||||
jQuery('#jform_head').removeAttr('required');
|
||||
jQuery('#jform_head').removeAttr('aria-required');
|
||||
jQuery('#jform_head').removeClass('required');
|
||||
jform_vvvvvxevwd_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvxe Some function
|
||||
function add_head_vvvvvxe_SomeFunc(add_head_vvvvvxe)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_head_vvvvvxe == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvvxe Some function
|
||||
function class_extends_vvvvvxe_SomeFunc(class_extends_vvvvvxe)
|
||||
{
|
||||
// set the function logic
|
||||
if (isSet(class_extends_vvvvvxe))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// update required fields
|
||||
function updateFieldRequired(name,status)
|
||||
{
|
||||
var not_required = jQuery('#jform_not_required').val();
|
||||
|
||||
if(status == 1)
|
||||
{
|
||||
if (isSet(not_required) && not_required != 0)
|
||||
{
|
||||
not_required = not_required+','+name;
|
||||
}
|
||||
else
|
||||
{
|
||||
not_required = ','+name;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (isSet(not_required) && not_required != 0)
|
||||
{
|
||||
not_required = not_required.replace(','+name,'');
|
||||
}
|
||||
}
|
||||
|
||||
jQuery('#jform_not_required').val(not_required);
|
||||
}
|
||||
|
||||
// the isSet function
|
||||
function isSet(val)
|
||||
{
|
||||
@ -165,15 +319,8 @@ jQuery(document).ready(function()
|
||||
// get the linked details
|
||||
getLinked();
|
||||
// load the active array values
|
||||
buildSelectionArray('property');
|
||||
buildSelectionArray('method');
|
||||
// set joomla_plugin_group Array
|
||||
selectionArray['joomla_plugin_group'] = {};
|
||||
jQuery("#jform_joomla_plugin_group option").each(function() {
|
||||
var key = jQuery(this).val();
|
||||
var text = jQuery(this).text();
|
||||
selectionArray['joomla_plugin_group'][key] = text;
|
||||
});
|
||||
buildSelectionMemory('property');
|
||||
buildSelectionMemory('method');
|
||||
// load the active selection array values
|
||||
getClassCodeIds('joomla_plugin_group', 'jform_class_extends', false);
|
||||
getClassCodeIds('property', 'jform_joomla_plugin_group', false);
|
||||
@ -184,6 +331,23 @@ jQuery(document).ready(function()
|
||||
rowWatcher();
|
||||
});
|
||||
|
||||
// set selection the options
|
||||
selectionMemory = {'property':{},'method':{}};
|
||||
selectionActiveArray = {'property':{},'method':{}};
|
||||
selectedIdRemoved = {'property':'not','method':'not'};
|
||||
|
||||
function buildSelectionMemory(type) {
|
||||
var i;
|
||||
for (i = 0; i < 70; i++) {
|
||||
// build ID
|
||||
var id_check = 'jform_'+type+'_selection'+'__'+type+'_selection'+i+'__'+type;
|
||||
// set memory
|
||||
if (jQuery("#"+id_check).length) {
|
||||
selectionMemory[type][id_check] = jQuery("#"+id_check+" option:selected").val();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getClassStuff_server(id, type, callingName){
|
||||
var getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax."+callingName+"&format=json&raw=true");
|
||||
if(token.length > 0 && id > 0 && type.length > 0){
|
||||
@ -198,6 +362,30 @@ function getClassStuff_server(id, type, callingName){
|
||||
});
|
||||
}
|
||||
|
||||
function getClassHeaderCode(){
|
||||
// now get the values
|
||||
var value = jQuery("#jform_class_extends option:selected").val();
|
||||
var add_value = jQuery("#jform_add_head input[type='radio']:checked").val();
|
||||
if (add_value == 1 && value > 0){
|
||||
// we first check local memory
|
||||
var _result = jQuery.jStorage.get('extends_header_'+value, null);
|
||||
if (_result) {
|
||||
// now set the code
|
||||
addCodeToEditor(_result, "jform_head", false);
|
||||
} else {
|
||||
// now get the code
|
||||
getClassStuff_server(value, 'extends', 'getClassHeaderCode').done(function(result) {
|
||||
if(result){
|
||||
// now set the code
|
||||
addCodeToEditor(result, "jform_head", false);
|
||||
// add result to local memory
|
||||
jQuery.jStorage.set('extends_header_'+value, result, {TTL: expire});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getClassCodeIds(type, target_field, reset_all){
|
||||
// now get the value
|
||||
var value = jQuery('#'+target_field).val();
|
||||
@ -207,7 +395,7 @@ function getClassCodeIds(type, target_field, reset_all){
|
||||
// reset the selection
|
||||
selectionActiveArray[type] = {};
|
||||
// update the active array
|
||||
jQuery.each( result, function(i, prop) {
|
||||
jQuery.each(result, function(i, prop) {
|
||||
selectionActiveArray[type][prop] = selectionArray[type][prop];
|
||||
});
|
||||
// update the active field selection
|
||||
@ -276,6 +464,7 @@ function resetAll(type) {
|
||||
}
|
||||
}
|
||||
Joomla.editors.instances['jform_main_class_code'].setValue('');
|
||||
selectionMemory = {'property':{},'method':{}};
|
||||
}
|
||||
|
||||
function getClassCode(field, type){
|
||||
@ -283,6 +472,31 @@ function getClassCode(field, type){
|
||||
var id = jQuery(field).attr('id');
|
||||
// now get the value
|
||||
var value = jQuery('#' + id).val();
|
||||
// check if we have a memory for this field, if true remove code of old selection and clear memory
|
||||
if (selectionMemory[type].hasOwnProperty(id) && selectionMemory[type][id] > 0) {
|
||||
// the old id to remove
|
||||
var old_value = selectionMemory[type][id];
|
||||
// remove the code // we first check local memory
|
||||
var _result = jQuery.jStorage.get('code_4_'+type+'_'+old_value, null);
|
||||
if (_result) {
|
||||
// now remove the code
|
||||
if (removeCodeFromEditor(_result)) {
|
||||
selectionMemory[type][id] = 0;
|
||||
}
|
||||
} else {
|
||||
// now get the code
|
||||
getClassStuff_server(old_value, type, 'getClassCode').done(function(result) {
|
||||
if(result){
|
||||
// now remove the code
|
||||
if (removeCodeFromEditor(result)) {
|
||||
selectionMemory[type][id] = 0;
|
||||
}
|
||||
// add result to local memory
|
||||
jQuery.jStorage.set('code_4_'+type+'_'+old_value, result, {TTL: expire});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
if (propertyIsSet(value, id, type)) {
|
||||
// reset the selection
|
||||
jQuery('#'+id).val('');
|
||||
@ -294,69 +508,81 @@ function getClassCode(field, type){
|
||||
selectedIdRemoved[type] = id;
|
||||
// do a dynamic update (to remove what was already used)
|
||||
selectionDynamicUpdate(type);
|
||||
// now get the code
|
||||
getClassStuff_server(value, type, 'getClassCode').done(function(result) {
|
||||
if(result){
|
||||
if (Joomla.editors.instances.hasOwnProperty("jform_main_class_code")) {
|
||||
var old_result = Joomla.editors.instances['jform_main_class_code'].getValue();
|
||||
if (old_result.length > 0) {
|
||||
// make sure not to load the same string twice
|
||||
if (old_result.indexOf(result) !== -1) {
|
||||
// reset the selection
|
||||
jQuery('#'+id).val('');
|
||||
jQuery('#'+id).trigger("liszt:updated");
|
||||
// give out a notice
|
||||
jQuery.UIkit.notify({message: Joomla.JText._('COM_COMPONENTBUILDER_ALREADY_SELECTED_TRY_ANOTHER'), timeout: 5000, status: 'warning', pos: 'top-center'});
|
||||
} else {
|
||||
Joomla.editors.instances['jform_main_class_code'].setValue(old_result + "\n\n" + result);
|
||||
}
|
||||
} else {
|
||||
Joomla.editors.instances['jform_main_class_code'].setValue(result);
|
||||
}
|
||||
} else {
|
||||
var old_result = jQuery('textarea#jform_main_class_code').val();
|
||||
if (old_result.length > 0) {
|
||||
// make sure not to load the same string twice
|
||||
if (old_result.indexOf(result) !== -1) {
|
||||
// reset the selection
|
||||
jQuery('#'+id).val('');
|
||||
jQuery('#'+id).trigger("liszt:updated");
|
||||
// give out a notice
|
||||
jQuery.UIkit.notify({message: Joomla.JText._('COM_COMPONENTBUILDER_ALREADY_SELECTED_TRY_ANOTHER'), timeout: 5000, status: 'warning', pos: 'top-center'});
|
||||
} else {
|
||||
jQuery('textarea#jform_main_class_code').val(old_result + "\n\n" + result);
|
||||
}
|
||||
} else {
|
||||
jQuery('textarea#jform_main_class_code').val(result);
|
||||
}
|
||||
}
|
||||
// we first check local memory
|
||||
var _result = jQuery.jStorage.get('code_4_'+type+'_'+value, null);
|
||||
if (_result) {
|
||||
// now set the code
|
||||
if (addCodeToEditor(_result, "jform_main_class_code", true)) {
|
||||
selectionMemory[type][id] = value;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
// now get the code
|
||||
getClassStuff_server(value, type, 'getClassCode').done(function(result) {
|
||||
if(result){
|
||||
// now set the code
|
||||
if (addCodeToEditor(result, "jform_main_class_code", true)) {
|
||||
selectionMemory[type][id] = value;
|
||||
}
|
||||
// add result to local memory
|
||||
jQuery.jStorage.set('code_4_'+type+'_'+value, result, {TTL: expire});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// set selection the options
|
||||
selectionArray = {'property':{},'method':{}};
|
||||
selectionActiveArray = {'property':{},'method':{}};
|
||||
selectedIdRemoved = {'property':'not','method':'not'};
|
||||
justonce = {'property':1,'method':1};
|
||||
|
||||
function buildSelectionArray(type) {
|
||||
var i;
|
||||
for (i = 0; i < 10; i++) {
|
||||
// build ID
|
||||
var id_check = 'jform_'+type+'_selection'+'__'+type+'_selection'+i+'__'+type;
|
||||
// first check if Id is on page as that not the same as the one currently calling
|
||||
if (justonce[type] == 1 && jQuery("#"+id_check).length) {
|
||||
// set buckets
|
||||
jQuery("#"+id_check+" option").each(function() {
|
||||
var key = jQuery(this).val();
|
||||
var text = jQuery(this).text();
|
||||
selectionArray[type][key] = text;
|
||||
});
|
||||
justonce[type]++;
|
||||
function addCodeToEditor(code_string, editor_id, merge){
|
||||
if (Joomla.editors.instances.hasOwnProperty(editor_id)) {
|
||||
var old_code_string = Joomla.editors.instances[editor_id].getValue();
|
||||
if (merge && old_code_string.length > 0) {
|
||||
// make sure not to load the same string twice
|
||||
if (old_code_string.indexOf(code_string) == -1) {
|
||||
Joomla.editors.instances[editor_id].setValue(old_code_string + "\n\n" + code_string);
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
Joomla.editors.instances[editor_id].setValue(code_string);
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
var old_code_string = jQuery('textarea#'+editor_id).val();
|
||||
if (merge && old_code_string.length > 0) {
|
||||
// make sure not to load the same string twice
|
||||
if (old_code_string.indexOf(code_string) == -1) {
|
||||
jQuery('textarea#'+editor_id).val(old_code_string + "\n\n" + code_string);
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
jQuery('textarea#'+editor_id).val(code_string);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function removeCodeFromEditor(code_string){
|
||||
if (Joomla.editors.instances.hasOwnProperty("jform_main_class_code")) {
|
||||
var old_code_string = Joomla.editors.instances['jform_main_class_code'].getValue();
|
||||
if (old_code_string.length > 0) {
|
||||
// make sure not to load the same string twice
|
||||
if (old_code_string.indexOf(code_string) !== -1) {
|
||||
// remove the code
|
||||
Joomla.editors.instances['jform_main_class_code'].setValue(old_code_string.replace(code_string+"\n\n",'').replace("\n\n"+code_string,'').replace(code_string,''));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
var old_code_string = jQuery('textarea#jform_main_class_code').val();
|
||||
if (old_code_string.length > 0) {
|
||||
// make sure not to load the same string twice
|
||||
if (old_code_string.indexOf(code_string) !== -1) {
|
||||
// remove the code
|
||||
jQuery('textarea#jform_main_class_code').val(old_code_string.replace(code_string+"\n\n",'').replace("\n\n"+code_string,'').replace(code_string,''));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function selectionDynamicUpdate(type) {
|
||||
@ -379,8 +605,6 @@ function selectionDynamicUpdate(type) {
|
||||
jQuery("#"+id_check).find('option').remove().end();
|
||||
}
|
||||
}
|
||||
// trigger chosen on the list fields
|
||||
// jQuery('.'+type+'_selection_list').chosen({"disable_search_threshold":10,"search_contains":true,"allow_single_deselect":true,"placeholder_text_multiple":Joomla.JText._("COM_COMPONENTBUILDER_TYPE_OR_SELECT_SOME_OPTIONS"),"placeholder_text_single":Joomla.JText._("COM_COMPONENTBUILDER_SELECT_A_PROPERTY"),"no_results_text":Joomla.JText._("COM_COMPONENTBUILDER_NO_RESULTS_MATCH")});
|
||||
// now build the list to keep
|
||||
jQuery.each( selectionActiveArray[type], function( prop, name ) {
|
||||
if (!selectionSelectedArray.hasOwnProperty(prop)) {
|
||||
@ -416,29 +640,28 @@ function rowWatcher() {
|
||||
selectionDynamicUpdate(type_call);
|
||||
// also remove from code
|
||||
var valid_value = jQuery(row.innerHTML).find('#' + valid_call + ' option:selected').val();
|
||||
getClassStuff_server(valid_value, type_call, 'getClassCode').done(function(result) {
|
||||
if(result){
|
||||
if (Joomla.editors.instances.hasOwnProperty("jform_main_class_code")) {
|
||||
var old_result = Joomla.editors.instances['jform_main_class_code'].getValue();
|
||||
if (old_result.length > 0) {
|
||||
// make sure not to load the same string twice
|
||||
if (old_result.indexOf(result) !== -1) {
|
||||
// remove the code
|
||||
Joomla.editors.instances['jform_main_class_code'].setValue(old_result.replace(result+"\n\n",'').replace("\n\n"+result,'').replace(result,''));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
var old_result = jQuery('textarea#jform_main_class_code').val();
|
||||
if (old_result.length > 0) {
|
||||
// make sure not to load the same string twice
|
||||
if (old_result.indexOf(result) !== -1) {
|
||||
// remove the code
|
||||
jQuery('textarea#jform_main_class_code').val(old_result.replace(result+"\n\n",'').replace("\n\n"+result,'').replace(result,''));
|
||||
}
|
||||
}
|
||||
}
|
||||
if (valid_value === '') {
|
||||
valid_value = selectionMemory[type_call][valid_call];
|
||||
}
|
||||
// remove the code // we first check local memory
|
||||
var _result = jQuery.jStorage.get('code_4_'+type_call+'_'+valid_value, null);
|
||||
if (_result) {
|
||||
// now remove the code
|
||||
if (removeCodeFromEditor(_result)) {
|
||||
selectionMemory[type_call][valid_call] = 0;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
// now get the code
|
||||
getClassStuff_server(valid_value, type_call, 'getClassCode').done(function(result) {
|
||||
if(result){
|
||||
if (removeCodeFromEditor(result)) {
|
||||
selectionMemory[type_call][valid_call] = 0;;
|
||||
}
|
||||
// add result to local memory
|
||||
jQuery.jStorage.set('code_4_'+type_call+'_'+valid_value, result, {TTL: expire});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
jQuery(document).on('subform-row-add', function(event, row){
|
||||
|
@ -85,21 +85,19 @@
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- Dynamic Fields. -->
|
||||
<!-- Name Field. Type: Text. (joomla) -->
|
||||
<!-- System_name Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="name"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NAME_LABEL"
|
||||
size="40"
|
||||
maxlength="150"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NAME_DESCRIPTION"
|
||||
name="system_name"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SYSTEM_NAME_LABEL"
|
||||
size="10"
|
||||
maxlength="50"
|
||||
default=""
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SYSTEM_NAME_DESCRIPTION"
|
||||
class="text_area"
|
||||
readonly="false"
|
||||
disabled="false"
|
||||
required="true"
|
||||
filter="STRING"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NAME_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NAME_HINT"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SYSTEM_NAME_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SYSTEM_NAME_HINT"
|
||||
/>
|
||||
<!-- Class_extends Field. Type: Classextends. (custom) -->
|
||||
<field
|
||||
@ -180,6 +178,23 @@
|
||||
filter="raw"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Head Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="head"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_HEAD_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_HEAD_DESCRIPTION"
|
||||
width="100%"
|
||||
height="100px"
|
||||
cols="15"
|
||||
rows="10"
|
||||
buttons="no"
|
||||
syntax="php"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
required="false"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Method_selection Field. Type: Subform. (joomla) -->
|
||||
<field
|
||||
type="subform"
|
||||
@ -234,6 +249,36 @@
|
||||
</field>
|
||||
<!-- Note_plugin Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_plugin" label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_PLUGIN_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_PLUGIN_DESCRIPTION" heading="h4" class="alert alert-info note_plugin" />
|
||||
<!-- Add_head Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="add_head"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_HEAD_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_HEAD_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_YES</option>
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NO</option>
|
||||
</field>
|
||||
<!-- Name Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="name"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NAME_LABEL"
|
||||
size="40"
|
||||
maxlength="150"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NAME_DESCRIPTION"
|
||||
class="text_area"
|
||||
readonly="false"
|
||||
disabled="false"
|
||||
required="true"
|
||||
filter="STRING"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NAME_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NAME_HINT"
|
||||
/>
|
||||
<!-- Note_beta_stage Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_beta_stage" label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_BETA_STAGE_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_BETA_STAGE_DESCRIPTION" heading="h4" class="alert alert-warning note_beta_stage" />
|
||||
</fieldset>
|
||||
|
@ -11,15 +11,15 @@
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var add_php_view_vvvvvzh = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvzh(add_php_view_vvvvvzh);
|
||||
var add_php_view_vvvvvzk = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvzk(add_php_view_vvvvvzk);
|
||||
});
|
||||
|
||||
// the vvvvvzh function
|
||||
function vvvvvzh(add_php_view_vvvvvzh)
|
||||
// the vvvvvzk function
|
||||
function vvvvvzk(add_php_view_vvvvvzk)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_view_vvvvvzh == 1)
|
||||
if (add_php_view_vvvvvzk == 1)
|
||||
{
|
||||
jQuery('#jform_php_view-lbl').closest('.control-group').show();
|
||||
}
|
||||
|
@ -9,21 +9,12 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwaqvxf_required = false;
|
||||
jform_vvvvwawvxg_required = false;
|
||||
jform_vvvvwatvxg_required = false;
|
||||
jform_vvvvwazvxh_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var how_vvvvwap = jQuery("#jform_how").val();
|
||||
vvvvwap(how_vvvvwap);
|
||||
|
||||
var how_vvvvwaq = jQuery("#jform_how").val();
|
||||
vvvvwaq(how_vvvvwaq);
|
||||
|
||||
var how_vvvvwar = jQuery("#jform_how").val();
|
||||
vvvvwar(how_vvvvwar);
|
||||
|
||||
var how_vvvvwas = jQuery("#jform_how").val();
|
||||
vvvvwas(how_vvvvwas);
|
||||
|
||||
@ -36,142 +27,19 @@ jQuery(document).ready(function()
|
||||
var how_vvvvwav = jQuery("#jform_how").val();
|
||||
vvvvwav(how_vvvvwav);
|
||||
|
||||
var type_vvvvwaw = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwaw(type_vvvvwaw);
|
||||
var how_vvvvwaw = jQuery("#jform_how").val();
|
||||
vvvvwaw(how_vvvvwaw);
|
||||
|
||||
var how_vvvvwax = jQuery("#jform_how").val();
|
||||
vvvvwax(how_vvvvwax);
|
||||
|
||||
var how_vvvvway = jQuery("#jform_how").val();
|
||||
vvvvway(how_vvvvway);
|
||||
|
||||
var type_vvvvwaz = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwaz(type_vvvvwaz);
|
||||
});
|
||||
|
||||
// the vvvvwap function
|
||||
function vvvvwap(how_vvvvwap)
|
||||
{
|
||||
if (isSet(how_vvvvwap) && how_vvvvwap.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwap = how_vvvvwap;
|
||||
var how_vvvvwap = [];
|
||||
how_vvvvwap.push(temp_vvvvwap);
|
||||
}
|
||||
else if (!isSet(how_vvvvwap))
|
||||
{
|
||||
var how_vvvvwap = [];
|
||||
}
|
||||
var how = how_vvvvwap.some(how_vvvvwap_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (how)
|
||||
{
|
||||
jQuery('#jform_addconditions-lbl').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_addconditions-lbl').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwap Some function
|
||||
function how_vvvvwap_SomeFunc(how_vvvvwap)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwap == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwaq function
|
||||
function vvvvwaq(how_vvvvwaq)
|
||||
{
|
||||
if (isSet(how_vvvvwaq) && how_vvvvwaq.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwaq = how_vvvvwaq;
|
||||
var how_vvvvwaq = [];
|
||||
how_vvvvwaq.push(temp_vvvvwaq);
|
||||
}
|
||||
else if (!isSet(how_vvvvwaq))
|
||||
{
|
||||
var how_vvvvwaq = [];
|
||||
}
|
||||
var how = how_vvvvwaq.some(how_vvvvwaq_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (how)
|
||||
{
|
||||
jQuery('#jform_php_setdocument').closest('.control-group').show();
|
||||
// add required attribute to php_setdocument field
|
||||
if (jform_vvvvwaqvxf_required)
|
||||
{
|
||||
updateFieldRequired('php_setdocument',0);
|
||||
jQuery('#jform_php_setdocument').prop('required','required');
|
||||
jQuery('#jform_php_setdocument').attr('aria-required',true);
|
||||
jQuery('#jform_php_setdocument').addClass('required');
|
||||
jform_vvvvwaqvxf_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_setdocument').closest('.control-group').hide();
|
||||
// remove required attribute from php_setdocument field
|
||||
if (!jform_vvvvwaqvxf_required)
|
||||
{
|
||||
updateFieldRequired('php_setdocument',1);
|
||||
jQuery('#jform_php_setdocument').removeAttr('required');
|
||||
jQuery('#jform_php_setdocument').removeAttr('aria-required');
|
||||
jQuery('#jform_php_setdocument').removeClass('required');
|
||||
jform_vvvvwaqvxf_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwaq Some function
|
||||
function how_vvvvwaq_SomeFunc(how_vvvvwaq)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwaq == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwar function
|
||||
function vvvvwar(how_vvvvwar)
|
||||
{
|
||||
if (isSet(how_vvvvwar) && how_vvvvwar.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwar = how_vvvvwar;
|
||||
var how_vvvvwar = [];
|
||||
how_vvvvwar.push(temp_vvvvwar);
|
||||
}
|
||||
else if (!isSet(how_vvvvwar))
|
||||
{
|
||||
var how_vvvvwar = [];
|
||||
}
|
||||
var how = how_vvvvwar.some(how_vvvvwar_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (how)
|
||||
{
|
||||
jQuery('.note_display_library_config').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_display_library_config').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwar Some function
|
||||
function how_vvvvwar_SomeFunc(how_vvvvwar)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwar == 2 || how_vvvvwar == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwas function
|
||||
function vvvvwas(how_vvvvwas)
|
||||
{
|
||||
@ -191,11 +59,11 @@ function vvvvwas(how_vvvvwas)
|
||||
// set this function logic
|
||||
if (how)
|
||||
{
|
||||
jQuery('.note_display_library_files_folders_urls').closest('.control-group').show();
|
||||
jQuery('#jform_addconditions-lbl').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_display_library_files_folders_urls').closest('.control-group').hide();
|
||||
jQuery('#jform_addconditions-lbl').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
@ -203,7 +71,7 @@ function vvvvwas(how_vvvvwas)
|
||||
function how_vvvvwas_SomeFunc(how_vvvvwas)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwas == 1 || how_vvvvwas == 2 || how_vvvvwas == 3)
|
||||
if (how_vvvvwas == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -229,15 +97,29 @@ function vvvvwat(how_vvvvwat)
|
||||
// set this function logic
|
||||
if (how)
|
||||
{
|
||||
jQuery('.note_no_behaviour_one').closest('.control-group').show();
|
||||
jQuery('.note_no_behaviour_three').closest('.control-group').show();
|
||||
jQuery('.note_no_behaviour_two').closest('.control-group').show();
|
||||
jQuery('#jform_php_setdocument').closest('.control-group').show();
|
||||
// add required attribute to php_setdocument field
|
||||
if (jform_vvvvwatvxg_required)
|
||||
{
|
||||
updateFieldRequired('php_setdocument',0);
|
||||
jQuery('#jform_php_setdocument').prop('required','required');
|
||||
jQuery('#jform_php_setdocument').attr('aria-required',true);
|
||||
jQuery('#jform_php_setdocument').addClass('required');
|
||||
jform_vvvvwatvxg_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_no_behaviour_one').closest('.control-group').hide();
|
||||
jQuery('.note_no_behaviour_three').closest('.control-group').hide();
|
||||
jQuery('.note_no_behaviour_two').closest('.control-group').hide();
|
||||
jQuery('#jform_php_setdocument').closest('.control-group').hide();
|
||||
// remove required attribute from php_setdocument field
|
||||
if (!jform_vvvvwatvxg_required)
|
||||
{
|
||||
updateFieldRequired('php_setdocument',1);
|
||||
jQuery('#jform_php_setdocument').removeAttr('required');
|
||||
jQuery('#jform_php_setdocument').removeAttr('aria-required');
|
||||
jQuery('#jform_php_setdocument').removeClass('required');
|
||||
jform_vvvvwatvxg_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -245,7 +127,7 @@ function vvvvwat(how_vvvvwat)
|
||||
function how_vvvvwat_SomeFunc(how_vvvvwat)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwat == 0)
|
||||
if (how_vvvvwat == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -271,13 +153,11 @@ function vvvvwau(how_vvvvwau)
|
||||
// set this function logic
|
||||
if (how)
|
||||
{
|
||||
jQuery('.note_yes_behaviour_one').closest('.control-group').show();
|
||||
jQuery('.note_yes_behaviour_two').closest('.control-group').show();
|
||||
jQuery('.note_display_library_config').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_yes_behaviour_one').closest('.control-group').hide();
|
||||
jQuery('.note_yes_behaviour_two').closest('.control-group').hide();
|
||||
jQuery('.note_display_library_config').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
@ -285,7 +165,7 @@ function vvvvwau(how_vvvvwau)
|
||||
function how_vvvvwau_SomeFunc(how_vvvvwau)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwau == 1)
|
||||
if (how_vvvvwau == 2 || how_vvvvwau == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -308,6 +188,126 @@ function vvvvwav(how_vvvvwav)
|
||||
var how = how_vvvvwav.some(how_vvvvwav_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (how)
|
||||
{
|
||||
jQuery('.note_display_library_files_folders_urls').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_display_library_files_folders_urls').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwav Some function
|
||||
function how_vvvvwav_SomeFunc(how_vvvvwav)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwav == 1 || how_vvvvwav == 2 || how_vvvvwav == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwaw function
|
||||
function vvvvwaw(how_vvvvwaw)
|
||||
{
|
||||
if (isSet(how_vvvvwaw) && how_vvvvwaw.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwaw = how_vvvvwaw;
|
||||
var how_vvvvwaw = [];
|
||||
how_vvvvwaw.push(temp_vvvvwaw);
|
||||
}
|
||||
else if (!isSet(how_vvvvwaw))
|
||||
{
|
||||
var how_vvvvwaw = [];
|
||||
}
|
||||
var how = how_vvvvwaw.some(how_vvvvwaw_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (how)
|
||||
{
|
||||
jQuery('.note_no_behaviour_one').closest('.control-group').show();
|
||||
jQuery('.note_no_behaviour_three').closest('.control-group').show();
|
||||
jQuery('.note_no_behaviour_two').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_no_behaviour_one').closest('.control-group').hide();
|
||||
jQuery('.note_no_behaviour_three').closest('.control-group').hide();
|
||||
jQuery('.note_no_behaviour_two').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwaw Some function
|
||||
function how_vvvvwaw_SomeFunc(how_vvvvwaw)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwaw == 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwax function
|
||||
function vvvvwax(how_vvvvwax)
|
||||
{
|
||||
if (isSet(how_vvvvwax) && how_vvvvwax.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwax = how_vvvvwax;
|
||||
var how_vvvvwax = [];
|
||||
how_vvvvwax.push(temp_vvvvwax);
|
||||
}
|
||||
else if (!isSet(how_vvvvwax))
|
||||
{
|
||||
var how_vvvvwax = [];
|
||||
}
|
||||
var how = how_vvvvwax.some(how_vvvvwax_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (how)
|
||||
{
|
||||
jQuery('.note_yes_behaviour_one').closest('.control-group').show();
|
||||
jQuery('.note_yes_behaviour_two').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_yes_behaviour_one').closest('.control-group').hide();
|
||||
jQuery('.note_yes_behaviour_two').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwax Some function
|
||||
function how_vvvvwax_SomeFunc(how_vvvvwax)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwax == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvway function
|
||||
function vvvvway(how_vvvvway)
|
||||
{
|
||||
if (isSet(how_vvvvway) && how_vvvvway.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvway = how_vvvvway;
|
||||
var how_vvvvway = [];
|
||||
how_vvvvway.push(temp_vvvvway);
|
||||
}
|
||||
else if (!isSet(how_vvvvway))
|
||||
{
|
||||
var how_vvvvway = [];
|
||||
}
|
||||
var how = how_vvvvway.some(how_vvvvway_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (how)
|
||||
{
|
||||
@ -323,45 +323,45 @@ function vvvvwav(how_vvvvwav)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwav Some function
|
||||
function how_vvvvwav_SomeFunc(how_vvvvwav)
|
||||
// the vvvvway Some function
|
||||
function how_vvvvway_SomeFunc(how_vvvvway)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwav == 4)
|
||||
if (how_vvvvway == 4)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwaw function
|
||||
function vvvvwaw(type_vvvvwaw)
|
||||
// the vvvvwaz function
|
||||
function vvvvwaz(type_vvvvwaz)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwaw == 2)
|
||||
if (type_vvvvwaz == 2)
|
||||
{
|
||||
jQuery('#jform_libraries').closest('.control-group').show();
|
||||
// add required attribute to libraries field
|
||||
if (jform_vvvvwawvxg_required)
|
||||
if (jform_vvvvwazvxh_required)
|
||||
{
|
||||
updateFieldRequired('libraries',0);
|
||||
jQuery('#jform_libraries').prop('required','required');
|
||||
jQuery('#jform_libraries').attr('aria-required',true);
|
||||
jQuery('#jform_libraries').addClass('required');
|
||||
jform_vvvvwawvxg_required = false;
|
||||
jform_vvvvwazvxh_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_libraries').closest('.control-group').hide();
|
||||
// remove required attribute from libraries field
|
||||
if (!jform_vvvvwawvxg_required)
|
||||
if (!jform_vvvvwazvxh_required)
|
||||
{
|
||||
updateFieldRequired('libraries',1);
|
||||
jQuery('#jform_libraries').removeAttr('required');
|
||||
jQuery('#jform_libraries').removeAttr('aria-required');
|
||||
jQuery('#jform_libraries').removeClass('required');
|
||||
jform_vvvvwawvxg_required = true;
|
||||
jform_vvvvwazvxh_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -9,56 +9,56 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwbtvxt_required = false;
|
||||
jform_vvvvwbtvxu_required = false;
|
||||
jform_vvvvwbtvxv_required = false;
|
||||
jform_vvvvwbtvxw_required = false;
|
||||
jform_vvvvwbtvxx_required = false;
|
||||
jform_vvvvwbuvxy_required = false;
|
||||
jform_vvvvwbvvxz_required = false;
|
||||
jform_vvvvwbxvya_required = false;
|
||||
jform_vvvvwbzvyb_required = false;
|
||||
jform_vvvvwbwvxu_required = false;
|
||||
jform_vvvvwbwvxv_required = false;
|
||||
jform_vvvvwbwvxw_required = false;
|
||||
jform_vvvvwbwvxx_required = false;
|
||||
jform_vvvvwbwvxy_required = false;
|
||||
jform_vvvvwbxvxz_required = false;
|
||||
jform_vvvvwbyvya_required = false;
|
||||
jform_vvvvwcavyb_required = false;
|
||||
jform_vvvvwccvyc_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var protocol_vvvvwbt = jQuery("#jform_protocol").val();
|
||||
vvvvwbt(protocol_vvvvwbt);
|
||||
|
||||
var protocol_vvvvwbu = jQuery("#jform_protocol").val();
|
||||
vvvvwbu(protocol_vvvvwbu);
|
||||
|
||||
var protocol_vvvvwbv = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbv = jQuery("#jform_authentication").val();
|
||||
vvvvwbv(protocol_vvvvwbv,authentication_vvvvwbv);
|
||||
var protocol_vvvvwbw = jQuery("#jform_protocol").val();
|
||||
vvvvwbw(protocol_vvvvwbw);
|
||||
|
||||
var protocol_vvvvwbx = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbx = jQuery("#jform_authentication").val();
|
||||
vvvvwbx(protocol_vvvvwbx,authentication_vvvvwbx);
|
||||
vvvvwbx(protocol_vvvvwbx);
|
||||
|
||||
var protocol_vvvvwbz = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbz = jQuery("#jform_authentication").val();
|
||||
vvvvwbz(protocol_vvvvwbz,authentication_vvvvwbz);
|
||||
var protocol_vvvvwby = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwby = jQuery("#jform_authentication").val();
|
||||
vvvvwby(protocol_vvvvwby,authentication_vvvvwby);
|
||||
|
||||
var protocol_vvvvwcb = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwcb = jQuery("#jform_authentication").val();
|
||||
vvvvwcb(protocol_vvvvwcb,authentication_vvvvwcb);
|
||||
var protocol_vvvvwca = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwca = jQuery("#jform_authentication").val();
|
||||
vvvvwca(protocol_vvvvwca,authentication_vvvvwca);
|
||||
|
||||
var protocol_vvvvwcc = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwcc = jQuery("#jform_authentication").val();
|
||||
vvvvwcc(protocol_vvvvwcc,authentication_vvvvwcc);
|
||||
|
||||
var protocol_vvvvwce = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwce = jQuery("#jform_authentication").val();
|
||||
vvvvwce(protocol_vvvvwce,authentication_vvvvwce);
|
||||
});
|
||||
|
||||
// the vvvvwbt function
|
||||
function vvvvwbt(protocol_vvvvwbt)
|
||||
// the vvvvwbw function
|
||||
function vvvvwbw(protocol_vvvvwbw)
|
||||
{
|
||||
if (isSet(protocol_vvvvwbt) && protocol_vvvvwbt.constructor !== Array)
|
||||
if (isSet(protocol_vvvvwbw) && protocol_vvvvwbw.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbt = protocol_vvvvwbt;
|
||||
var protocol_vvvvwbt = [];
|
||||
protocol_vvvvwbt.push(temp_vvvvwbt);
|
||||
var temp_vvvvwbw = protocol_vvvvwbw;
|
||||
var protocol_vvvvwbw = [];
|
||||
protocol_vvvvwbw.push(temp_vvvvwbw);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwbt))
|
||||
else if (!isSet(protocol_vvvvwbw))
|
||||
{
|
||||
var protocol_vvvvwbt = [];
|
||||
var protocol_vvvvwbw = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwbt.some(protocol_vvvvwbt_SomeFunc);
|
||||
var protocol = protocol_vvvvwbw.some(protocol_vvvvwbw_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -66,254 +66,117 @@ function vvvvwbt(protocol_vvvvwbt)
|
||||
{
|
||||
jQuery('#jform_authentication').closest('.control-group').show();
|
||||
// add required attribute to authentication field
|
||||
if (jform_vvvvwbtvxt_required)
|
||||
if (jform_vvvvwbwvxu_required)
|
||||
{
|
||||
updateFieldRequired('authentication',0);
|
||||
jQuery('#jform_authentication').prop('required','required');
|
||||
jQuery('#jform_authentication').attr('aria-required',true);
|
||||
jQuery('#jform_authentication').addClass('required');
|
||||
jform_vvvvwbtvxt_required = false;
|
||||
jform_vvvvwbwvxu_required = false;
|
||||
}
|
||||
jQuery('#jform_host').closest('.control-group').show();
|
||||
// add required attribute to host field
|
||||
if (jform_vvvvwbtvxu_required)
|
||||
if (jform_vvvvwbwvxv_required)
|
||||
{
|
||||
updateFieldRequired('host',0);
|
||||
jQuery('#jform_host').prop('required','required');
|
||||
jQuery('#jform_host').attr('aria-required',true);
|
||||
jQuery('#jform_host').addClass('required');
|
||||
jform_vvvvwbtvxu_required = false;
|
||||
jform_vvvvwbwvxv_required = false;
|
||||
}
|
||||
jQuery('#jform_port').closest('.control-group').show();
|
||||
// add required attribute to port field
|
||||
if (jform_vvvvwbtvxv_required)
|
||||
if (jform_vvvvwbwvxw_required)
|
||||
{
|
||||
updateFieldRequired('port',0);
|
||||
jQuery('#jform_port').prop('required','required');
|
||||
jQuery('#jform_port').attr('aria-required',true);
|
||||
jQuery('#jform_port').addClass('required');
|
||||
jform_vvvvwbtvxv_required = false;
|
||||
jform_vvvvwbwvxw_required = false;
|
||||
}
|
||||
jQuery('#jform_path').closest('.control-group').show();
|
||||
// add required attribute to path field
|
||||
if (jform_vvvvwbtvxw_required)
|
||||
if (jform_vvvvwbwvxx_required)
|
||||
{
|
||||
updateFieldRequired('path',0);
|
||||
jQuery('#jform_path').prop('required','required');
|
||||
jQuery('#jform_path').attr('aria-required',true);
|
||||
jQuery('#jform_path').addClass('required');
|
||||
jform_vvvvwbtvxw_required = false;
|
||||
jform_vvvvwbwvxx_required = false;
|
||||
}
|
||||
jQuery('.note_ssh_security').closest('.control-group').show();
|
||||
jQuery('#jform_username').closest('.control-group').show();
|
||||
// add required attribute to username field
|
||||
if (jform_vvvvwbtvxx_required)
|
||||
if (jform_vvvvwbwvxy_required)
|
||||
{
|
||||
updateFieldRequired('username',0);
|
||||
jQuery('#jform_username').prop('required','required');
|
||||
jQuery('#jform_username').attr('aria-required',true);
|
||||
jQuery('#jform_username').addClass('required');
|
||||
jform_vvvvwbtvxx_required = false;
|
||||
jform_vvvvwbwvxy_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_authentication').closest('.control-group').hide();
|
||||
// remove required attribute from authentication field
|
||||
if (!jform_vvvvwbtvxt_required)
|
||||
if (!jform_vvvvwbwvxu_required)
|
||||
{
|
||||
updateFieldRequired('authentication',1);
|
||||
jQuery('#jform_authentication').removeAttr('required');
|
||||
jQuery('#jform_authentication').removeAttr('aria-required');
|
||||
jQuery('#jform_authentication').removeClass('required');
|
||||
jform_vvvvwbtvxt_required = true;
|
||||
jform_vvvvwbwvxu_required = true;
|
||||
}
|
||||
jQuery('#jform_host').closest('.control-group').hide();
|
||||
// remove required attribute from host field
|
||||
if (!jform_vvvvwbtvxu_required)
|
||||
if (!jform_vvvvwbwvxv_required)
|
||||
{
|
||||
updateFieldRequired('host',1);
|
||||
jQuery('#jform_host').removeAttr('required');
|
||||
jQuery('#jform_host').removeAttr('aria-required');
|
||||
jQuery('#jform_host').removeClass('required');
|
||||
jform_vvvvwbtvxu_required = true;
|
||||
jform_vvvvwbwvxv_required = true;
|
||||
}
|
||||
jQuery('#jform_port').closest('.control-group').hide();
|
||||
// remove required attribute from port field
|
||||
if (!jform_vvvvwbtvxv_required)
|
||||
if (!jform_vvvvwbwvxw_required)
|
||||
{
|
||||
updateFieldRequired('port',1);
|
||||
jQuery('#jform_port').removeAttr('required');
|
||||
jQuery('#jform_port').removeAttr('aria-required');
|
||||
jQuery('#jform_port').removeClass('required');
|
||||
jform_vvvvwbtvxv_required = true;
|
||||
jform_vvvvwbwvxw_required = true;
|
||||
}
|
||||
jQuery('#jform_path').closest('.control-group').hide();
|
||||
// remove required attribute from path field
|
||||
if (!jform_vvvvwbtvxw_required)
|
||||
if (!jform_vvvvwbwvxx_required)
|
||||
{
|
||||
updateFieldRequired('path',1);
|
||||
jQuery('#jform_path').removeAttr('required');
|
||||
jQuery('#jform_path').removeAttr('aria-required');
|
||||
jQuery('#jform_path').removeClass('required');
|
||||
jform_vvvvwbtvxw_required = true;
|
||||
jform_vvvvwbwvxx_required = true;
|
||||
}
|
||||
jQuery('.note_ssh_security').closest('.control-group').hide();
|
||||
jQuery('#jform_username').closest('.control-group').hide();
|
||||
// remove required attribute from username field
|
||||
if (!jform_vvvvwbtvxx_required)
|
||||
if (!jform_vvvvwbwvxy_required)
|
||||
{
|
||||
updateFieldRequired('username',1);
|
||||
jQuery('#jform_username').removeAttr('required');
|
||||
jQuery('#jform_username').removeAttr('aria-required');
|
||||
jQuery('#jform_username').removeClass('required');
|
||||
jform_vvvvwbtvxx_required = true;
|
||||
jform_vvvvwbwvxy_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbt Some function
|
||||
function protocol_vvvvwbt_SomeFunc(protocol_vvvvwbt)
|
||||
// the vvvvwbw Some function
|
||||
function protocol_vvvvwbw_SomeFunc(protocol_vvvvwbw)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwbt == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbu function
|
||||
function vvvvwbu(protocol_vvvvwbu)
|
||||
{
|
||||
if (isSet(protocol_vvvvwbu) && protocol_vvvvwbu.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbu = protocol_vvvvwbu;
|
||||
var protocol_vvvvwbu = [];
|
||||
protocol_vvvvwbu.push(temp_vvvvwbu);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwbu))
|
||||
{
|
||||
var protocol_vvvvwbu = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwbu.some(protocol_vvvvwbu_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (protocol)
|
||||
{
|
||||
jQuery('.note_ftp_signature').closest('.control-group').show();
|
||||
jQuery('#jform_signature').closest('.control-group').show();
|
||||
// add required attribute to signature field
|
||||
if (jform_vvvvwbuvxy_required)
|
||||
{
|
||||
updateFieldRequired('signature',0);
|
||||
jQuery('#jform_signature').prop('required','required');
|
||||
jQuery('#jform_signature').attr('aria-required',true);
|
||||
jQuery('#jform_signature').addClass('required');
|
||||
jform_vvvvwbuvxy_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_ftp_signature').closest('.control-group').hide();
|
||||
jQuery('#jform_signature').closest('.control-group').hide();
|
||||
// remove required attribute from signature field
|
||||
if (!jform_vvvvwbuvxy_required)
|
||||
{
|
||||
updateFieldRequired('signature',1);
|
||||
jQuery('#jform_signature').removeAttr('required');
|
||||
jQuery('#jform_signature').removeAttr('aria-required');
|
||||
jQuery('#jform_signature').removeClass('required');
|
||||
jform_vvvvwbuvxy_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbu Some function
|
||||
function protocol_vvvvwbu_SomeFunc(protocol_vvvvwbu)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwbu == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbv function
|
||||
function vvvvwbv(protocol_vvvvwbv,authentication_vvvvwbv)
|
||||
{
|
||||
if (isSet(protocol_vvvvwbv) && protocol_vvvvwbv.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbv = protocol_vvvvwbv;
|
||||
var protocol_vvvvwbv = [];
|
||||
protocol_vvvvwbv.push(temp_vvvvwbv);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwbv))
|
||||
{
|
||||
var protocol_vvvvwbv = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwbv.some(protocol_vvvvwbv_SomeFunc);
|
||||
|
||||
if (isSet(authentication_vvvvwbv) && authentication_vvvvwbv.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbv = authentication_vvvvwbv;
|
||||
var authentication_vvvvwbv = [];
|
||||
authentication_vvvvwbv.push(temp_vvvvwbv);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwbv))
|
||||
{
|
||||
var authentication_vvvvwbv = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwbv.some(authentication_vvvvwbv_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (protocol && authentication)
|
||||
{
|
||||
jQuery('#jform_password').closest('.control-group').show();
|
||||
// add required attribute to password field
|
||||
if (jform_vvvvwbvvxz_required)
|
||||
{
|
||||
updateFieldRequired('password',0);
|
||||
jQuery('#jform_password').prop('required','required');
|
||||
jQuery('#jform_password').attr('aria-required',true);
|
||||
jQuery('#jform_password').addClass('required');
|
||||
jform_vvvvwbvvxz_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_password').closest('.control-group').hide();
|
||||
// remove required attribute from password field
|
||||
if (!jform_vvvvwbvvxz_required)
|
||||
{
|
||||
updateFieldRequired('password',1);
|
||||
jQuery('#jform_password').removeAttr('required');
|
||||
jQuery('#jform_password').removeAttr('aria-required');
|
||||
jQuery('#jform_password').removeClass('required');
|
||||
jform_vvvvwbvvxz_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbv Some function
|
||||
function protocol_vvvvwbv_SomeFunc(protocol_vvvvwbv)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwbv == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbv Some function
|
||||
function authentication_vvvvwbv_SomeFunc(authentication_vvvvwbv)
|
||||
{
|
||||
// set the function logic
|
||||
if (authentication_vvvvwbv == 1 || authentication_vvvvwbv == 3 || authentication_vvvvwbv == 5)
|
||||
if (protocol_vvvvwbw == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -321,7 +184,7 @@ function authentication_vvvvwbv_SomeFunc(authentication_vvvvwbv)
|
||||
}
|
||||
|
||||
// the vvvvwbx function
|
||||
function vvvvwbx(protocol_vvvvwbx,authentication_vvvvwbx)
|
||||
function vvvvwbx(protocol_vvvvwbx)
|
||||
{
|
||||
if (isSet(protocol_vvvvwbx) && protocol_vvvvwbx.constructor !== Array)
|
||||
{
|
||||
@ -335,44 +198,34 @@ function vvvvwbx(protocol_vvvvwbx,authentication_vvvvwbx)
|
||||
}
|
||||
var protocol = protocol_vvvvwbx.some(protocol_vvvvwbx_SomeFunc);
|
||||
|
||||
if (isSet(authentication_vvvvwbx) && authentication_vvvvwbx.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbx = authentication_vvvvwbx;
|
||||
var authentication_vvvvwbx = [];
|
||||
authentication_vvvvwbx.push(temp_vvvvwbx);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwbx))
|
||||
{
|
||||
var authentication_vvvvwbx = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwbx.some(authentication_vvvvwbx_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (protocol && authentication)
|
||||
if (protocol)
|
||||
{
|
||||
jQuery('#jform_private').closest('.control-group').show();
|
||||
// add required attribute to private field
|
||||
if (jform_vvvvwbxvya_required)
|
||||
jQuery('.note_ftp_signature').closest('.control-group').show();
|
||||
jQuery('#jform_signature').closest('.control-group').show();
|
||||
// add required attribute to signature field
|
||||
if (jform_vvvvwbxvxz_required)
|
||||
{
|
||||
updateFieldRequired('private',0);
|
||||
jQuery('#jform_private').prop('required','required');
|
||||
jQuery('#jform_private').attr('aria-required',true);
|
||||
jQuery('#jform_private').addClass('required');
|
||||
jform_vvvvwbxvya_required = false;
|
||||
updateFieldRequired('signature',0);
|
||||
jQuery('#jform_signature').prop('required','required');
|
||||
jQuery('#jform_signature').attr('aria-required',true);
|
||||
jQuery('#jform_signature').addClass('required');
|
||||
jform_vvvvwbxvxz_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_private').closest('.control-group').hide();
|
||||
// remove required attribute from private field
|
||||
if (!jform_vvvvwbxvya_required)
|
||||
jQuery('.note_ftp_signature').closest('.control-group').hide();
|
||||
jQuery('#jform_signature').closest('.control-group').hide();
|
||||
// remove required attribute from signature field
|
||||
if (!jform_vvvvwbxvxz_required)
|
||||
{
|
||||
updateFieldRequired('private',1);
|
||||
jQuery('#jform_private').removeAttr('required');
|
||||
jQuery('#jform_private').removeAttr('aria-required');
|
||||
jQuery('#jform_private').removeClass('required');
|
||||
jform_vvvvwbxvya_required = true;
|
||||
updateFieldRequired('signature',1);
|
||||
jQuery('#jform_signature').removeAttr('required');
|
||||
jQuery('#jform_signature').removeAttr('aria-required');
|
||||
jQuery('#jform_signature').removeClass('required');
|
||||
jform_vvvvwbxvxz_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -381,50 +234,197 @@ function vvvvwbx(protocol_vvvvwbx,authentication_vvvvwbx)
|
||||
function protocol_vvvvwbx_SomeFunc(protocol_vvvvwbx)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwbx == 2)
|
||||
if (protocol_vvvvwbx == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbx Some function
|
||||
function authentication_vvvvwbx_SomeFunc(authentication_vvvvwbx)
|
||||
// the vvvvwby function
|
||||
function vvvvwby(protocol_vvvvwby,authentication_vvvvwby)
|
||||
{
|
||||
if (isSet(protocol_vvvvwby) && protocol_vvvvwby.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwby = protocol_vvvvwby;
|
||||
var protocol_vvvvwby = [];
|
||||
protocol_vvvvwby.push(temp_vvvvwby);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwby))
|
||||
{
|
||||
var protocol_vvvvwby = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwby.some(protocol_vvvvwby_SomeFunc);
|
||||
|
||||
if (isSet(authentication_vvvvwby) && authentication_vvvvwby.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwby = authentication_vvvvwby;
|
||||
var authentication_vvvvwby = [];
|
||||
authentication_vvvvwby.push(temp_vvvvwby);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwby))
|
||||
{
|
||||
var authentication_vvvvwby = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwby.some(authentication_vvvvwby_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (protocol && authentication)
|
||||
{
|
||||
jQuery('#jform_password').closest('.control-group').show();
|
||||
// add required attribute to password field
|
||||
if (jform_vvvvwbyvya_required)
|
||||
{
|
||||
updateFieldRequired('password',0);
|
||||
jQuery('#jform_password').prop('required','required');
|
||||
jQuery('#jform_password').attr('aria-required',true);
|
||||
jQuery('#jform_password').addClass('required');
|
||||
jform_vvvvwbyvya_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_password').closest('.control-group').hide();
|
||||
// remove required attribute from password field
|
||||
if (!jform_vvvvwbyvya_required)
|
||||
{
|
||||
updateFieldRequired('password',1);
|
||||
jQuery('#jform_password').removeAttr('required');
|
||||
jQuery('#jform_password').removeAttr('aria-required');
|
||||
jQuery('#jform_password').removeClass('required');
|
||||
jform_vvvvwbyvya_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwby Some function
|
||||
function protocol_vvvvwby_SomeFunc(protocol_vvvvwby)
|
||||
{
|
||||
// set the function logic
|
||||
if (authentication_vvvvwbx == 2 || authentication_vvvvwbx == 3)
|
||||
if (protocol_vvvvwby == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbz function
|
||||
function vvvvwbz(protocol_vvvvwbz,authentication_vvvvwbz)
|
||||
// the vvvvwby Some function
|
||||
function authentication_vvvvwby_SomeFunc(authentication_vvvvwby)
|
||||
{
|
||||
if (isSet(protocol_vvvvwbz) && protocol_vvvvwbz.constructor !== Array)
|
||||
// set the function logic
|
||||
if (authentication_vvvvwby == 1 || authentication_vvvvwby == 3 || authentication_vvvvwby == 5)
|
||||
{
|
||||
var temp_vvvvwbz = protocol_vvvvwbz;
|
||||
var protocol_vvvvwbz = [];
|
||||
protocol_vvvvwbz.push(temp_vvvvwbz);
|
||||
return true;
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwbz))
|
||||
{
|
||||
var protocol_vvvvwbz = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwbz.some(protocol_vvvvwbz_SomeFunc);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (isSet(authentication_vvvvwbz) && authentication_vvvvwbz.constructor !== Array)
|
||||
// the vvvvwca function
|
||||
function vvvvwca(protocol_vvvvwca,authentication_vvvvwca)
|
||||
{
|
||||
if (isSet(protocol_vvvvwca) && protocol_vvvvwca.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbz = authentication_vvvvwbz;
|
||||
var authentication_vvvvwbz = [];
|
||||
authentication_vvvvwbz.push(temp_vvvvwbz);
|
||||
var temp_vvvvwca = protocol_vvvvwca;
|
||||
var protocol_vvvvwca = [];
|
||||
protocol_vvvvwca.push(temp_vvvvwca);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwbz))
|
||||
else if (!isSet(protocol_vvvvwca))
|
||||
{
|
||||
var authentication_vvvvwbz = [];
|
||||
var protocol_vvvvwca = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwbz.some(authentication_vvvvwbz_SomeFunc);
|
||||
var protocol = protocol_vvvvwca.some(protocol_vvvvwca_SomeFunc);
|
||||
|
||||
if (isSet(authentication_vvvvwca) && authentication_vvvvwca.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwca = authentication_vvvvwca;
|
||||
var authentication_vvvvwca = [];
|
||||
authentication_vvvvwca.push(temp_vvvvwca);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwca))
|
||||
{
|
||||
var authentication_vvvvwca = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwca.some(authentication_vvvvwca_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (protocol && authentication)
|
||||
{
|
||||
jQuery('#jform_private').closest('.control-group').show();
|
||||
// add required attribute to private field
|
||||
if (jform_vvvvwcavyb_required)
|
||||
{
|
||||
updateFieldRequired('private',0);
|
||||
jQuery('#jform_private').prop('required','required');
|
||||
jQuery('#jform_private').attr('aria-required',true);
|
||||
jQuery('#jform_private').addClass('required');
|
||||
jform_vvvvwcavyb_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_private').closest('.control-group').hide();
|
||||
// remove required attribute from private field
|
||||
if (!jform_vvvvwcavyb_required)
|
||||
{
|
||||
updateFieldRequired('private',1);
|
||||
jQuery('#jform_private').removeAttr('required');
|
||||
jQuery('#jform_private').removeAttr('aria-required');
|
||||
jQuery('#jform_private').removeClass('required');
|
||||
jform_vvvvwcavyb_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwca Some function
|
||||
function protocol_vvvvwca_SomeFunc(protocol_vvvvwca)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwca == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwca Some function
|
||||
function authentication_vvvvwca_SomeFunc(authentication_vvvvwca)
|
||||
{
|
||||
// set the function logic
|
||||
if (authentication_vvvvwca == 2 || authentication_vvvvwca == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwcc function
|
||||
function vvvvwcc(protocol_vvvvwcc,authentication_vvvvwcc)
|
||||
{
|
||||
if (isSet(protocol_vvvvwcc) && protocol_vvvvwcc.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwcc = protocol_vvvvwcc;
|
||||
var protocol_vvvvwcc = [];
|
||||
protocol_vvvvwcc.push(temp_vvvvwcc);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwcc))
|
||||
{
|
||||
var protocol_vvvvwcc = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwcc.some(protocol_vvvvwcc_SomeFunc);
|
||||
|
||||
if (isSet(authentication_vvvvwcc) && authentication_vvvvwcc.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwcc = authentication_vvvvwcc;
|
||||
var authentication_vvvvwcc = [];
|
||||
authentication_vvvvwcc.push(temp_vvvvwcc);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwcc))
|
||||
{
|
||||
var authentication_vvvvwcc = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwcc.some(authentication_vvvvwcc_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -432,78 +432,78 @@ function vvvvwbz(protocol_vvvvwbz,authentication_vvvvwbz)
|
||||
{
|
||||
jQuery('#jform_private_key').closest('.control-group').show();
|
||||
// add required attribute to private_key field
|
||||
if (jform_vvvvwbzvyb_required)
|
||||
if (jform_vvvvwccvyc_required)
|
||||
{
|
||||
updateFieldRequired('private_key',0);
|
||||
jQuery('#jform_private_key').prop('required','required');
|
||||
jQuery('#jform_private_key').attr('aria-required',true);
|
||||
jQuery('#jform_private_key').addClass('required');
|
||||
jform_vvvvwbzvyb_required = false;
|
||||
jform_vvvvwccvyc_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_private_key').closest('.control-group').hide();
|
||||
// remove required attribute from private_key field
|
||||
if (!jform_vvvvwbzvyb_required)
|
||||
if (!jform_vvvvwccvyc_required)
|
||||
{
|
||||
updateFieldRequired('private_key',1);
|
||||
jQuery('#jform_private_key').removeAttr('required');
|
||||
jQuery('#jform_private_key').removeAttr('aria-required');
|
||||
jQuery('#jform_private_key').removeClass('required');
|
||||
jform_vvvvwbzvyb_required = true;
|
||||
jform_vvvvwccvyc_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbz Some function
|
||||
function protocol_vvvvwbz_SomeFunc(protocol_vvvvwbz)
|
||||
// the vvvvwcc Some function
|
||||
function protocol_vvvvwcc_SomeFunc(protocol_vvvvwcc)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwbz == 2)
|
||||
if (protocol_vvvvwcc == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbz Some function
|
||||
function authentication_vvvvwbz_SomeFunc(authentication_vvvvwbz)
|
||||
// the vvvvwcc Some function
|
||||
function authentication_vvvvwcc_SomeFunc(authentication_vvvvwcc)
|
||||
{
|
||||
// set the function logic
|
||||
if (authentication_vvvvwbz == 4 || authentication_vvvvwbz == 5)
|
||||
if (authentication_vvvvwcc == 4 || authentication_vvvvwcc == 5)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwcb function
|
||||
function vvvvwcb(protocol_vvvvwcb,authentication_vvvvwcb)
|
||||
// the vvvvwce function
|
||||
function vvvvwce(protocol_vvvvwce,authentication_vvvvwce)
|
||||
{
|
||||
if (isSet(protocol_vvvvwcb) && protocol_vvvvwcb.constructor !== Array)
|
||||
if (isSet(protocol_vvvvwce) && protocol_vvvvwce.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwcb = protocol_vvvvwcb;
|
||||
var protocol_vvvvwcb = [];
|
||||
protocol_vvvvwcb.push(temp_vvvvwcb);
|
||||
var temp_vvvvwce = protocol_vvvvwce;
|
||||
var protocol_vvvvwce = [];
|
||||
protocol_vvvvwce.push(temp_vvvvwce);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwcb))
|
||||
else if (!isSet(protocol_vvvvwce))
|
||||
{
|
||||
var protocol_vvvvwcb = [];
|
||||
var protocol_vvvvwce = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwcb.some(protocol_vvvvwcb_SomeFunc);
|
||||
var protocol = protocol_vvvvwce.some(protocol_vvvvwce_SomeFunc);
|
||||
|
||||
if (isSet(authentication_vvvvwcb) && authentication_vvvvwcb.constructor !== Array)
|
||||
if (isSet(authentication_vvvvwce) && authentication_vvvvwce.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwcb = authentication_vvvvwcb;
|
||||
var authentication_vvvvwcb = [];
|
||||
authentication_vvvvwcb.push(temp_vvvvwcb);
|
||||
var temp_vvvvwce = authentication_vvvvwce;
|
||||
var authentication_vvvvwce = [];
|
||||
authentication_vvvvwce.push(temp_vvvvwce);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwcb))
|
||||
else if (!isSet(authentication_vvvvwce))
|
||||
{
|
||||
var authentication_vvvvwcb = [];
|
||||
var authentication_vvvvwce = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwcb.some(authentication_vvvvwcb_SomeFunc);
|
||||
var authentication = authentication_vvvvwce.some(authentication_vvvvwce_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -517,22 +517,22 @@ function vvvvwcb(protocol_vvvvwcb,authentication_vvvvwcb)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwcb Some function
|
||||
function protocol_vvvvwcb_SomeFunc(protocol_vvvvwcb)
|
||||
// the vvvvwce Some function
|
||||
function protocol_vvvvwce_SomeFunc(protocol_vvvvwce)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwcb == 2)
|
||||
if (protocol_vvvvwce == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwcb Some function
|
||||
function authentication_vvvvwcb_SomeFunc(authentication_vvvvwcb)
|
||||
// the vvvvwce Some function
|
||||
function authentication_vvvvwce_SomeFunc(authentication_vvvvwce)
|
||||
{
|
||||
// set the function logic
|
||||
if (authentication_vvvvwcb == 2 || authentication_vvvvwcb == 3 || authentication_vvvvwcb == 4 || authentication_vvvvwcb == 5)
|
||||
if (authentication_vvvvwce == 2 || authentication_vvvvwce == 3 || authentication_vvvvwce == 4 || authentication_vvvvwce == 5)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -11,45 +11,45 @@
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var add_php_view_vvvvvyv = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyv(add_php_view_vvvvvyv);
|
||||
var add_php_view_vvvvvyy = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyy(add_php_view_vvvvvyy);
|
||||
|
||||
var add_php_jview_display_vvvvvyw = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvvyw(add_php_jview_display_vvvvvyw);
|
||||
var add_php_jview_display_vvvvvyz = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvvyz(add_php_jview_display_vvvvvyz);
|
||||
|
||||
var add_php_jview_vvvvvyx = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvvyx(add_php_jview_vvvvvyx);
|
||||
var add_php_jview_vvvvvza = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvvza(add_php_jview_vvvvvza);
|
||||
|
||||
var add_php_document_vvvvvyy = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvyy(add_php_document_vvvvvyy);
|
||||
var add_php_document_vvvvvzb = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvzb(add_php_document_vvvvvzb);
|
||||
|
||||
var add_css_document_vvvvvyz = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvvyz(add_css_document_vvvvvyz);
|
||||
var add_css_document_vvvvvzc = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvvzc(add_css_document_vvvvvzc);
|
||||
|
||||
var add_javascript_file_vvvvvza = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvvza(add_javascript_file_vvvvvza);
|
||||
var add_javascript_file_vvvvvzd = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvvzd(add_javascript_file_vvvvvzd);
|
||||
|
||||
var add_js_document_vvvvvzb = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvvzb(add_js_document_vvvvvzb);
|
||||
var add_js_document_vvvvvze = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvvze(add_js_document_vvvvvze);
|
||||
|
||||
var add_css_vvvvvzc = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvvzc(add_css_vvvvvzc);
|
||||
var add_css_vvvvvzf = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvvzf(add_css_vvvvvzf);
|
||||
|
||||
var add_php_ajax_vvvvvzd = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvzd(add_php_ajax_vvvvvzd);
|
||||
var add_php_ajax_vvvvvzg = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvzg(add_php_ajax_vvvvvzg);
|
||||
|
||||
var add_custom_button_vvvvvze = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvze(add_custom_button_vvvvvze);
|
||||
var add_custom_button_vvvvvzh = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvzh(add_custom_button_vvvvvzh);
|
||||
|
||||
var button_position_vvvvvzf = jQuery("#jform_button_position").val();
|
||||
vvvvvzf(button_position_vvvvvzf);
|
||||
var button_position_vvvvvzi = jQuery("#jform_button_position").val();
|
||||
vvvvvzi(button_position_vvvvvzi);
|
||||
});
|
||||
|
||||
// the vvvvvyv function
|
||||
function vvvvvyv(add_php_view_vvvvvyv)
|
||||
// the vvvvvyy function
|
||||
function vvvvvyy(add_php_view_vvvvvyy)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_view_vvvvvyv == 1)
|
||||
if (add_php_view_vvvvvyy == 1)
|
||||
{
|
||||
jQuery('#jform_php_view-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -59,11 +59,11 @@ function vvvvvyv(add_php_view_vvvvvyv)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyw function
|
||||
function vvvvvyw(add_php_jview_display_vvvvvyw)
|
||||
// the vvvvvyz function
|
||||
function vvvvvyz(add_php_jview_display_vvvvvyz)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_jview_display_vvvvvyw == 1)
|
||||
if (add_php_jview_display_vvvvvyz == 1)
|
||||
{
|
||||
jQuery('#jform_php_jview_display-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -73,11 +73,11 @@ function vvvvvyw(add_php_jview_display_vvvvvyw)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyx function
|
||||
function vvvvvyx(add_php_jview_vvvvvyx)
|
||||
// the vvvvvza function
|
||||
function vvvvvza(add_php_jview_vvvvvza)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_jview_vvvvvyx == 1)
|
||||
if (add_php_jview_vvvvvza == 1)
|
||||
{
|
||||
jQuery('#jform_php_jview-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -87,11 +87,11 @@ function vvvvvyx(add_php_jview_vvvvvyx)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyy function
|
||||
function vvvvvyy(add_php_document_vvvvvyy)
|
||||
// the vvvvvzb function
|
||||
function vvvvvzb(add_php_document_vvvvvzb)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_document_vvvvvyy == 1)
|
||||
if (add_php_document_vvvvvzb == 1)
|
||||
{
|
||||
jQuery('#jform_php_document-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -101,11 +101,11 @@ function vvvvvyy(add_php_document_vvvvvyy)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyz function
|
||||
function vvvvvyz(add_css_document_vvvvvyz)
|
||||
// the vvvvvzc function
|
||||
function vvvvvzc(add_css_document_vvvvvzc)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_document_vvvvvyz == 1)
|
||||
if (add_css_document_vvvvvzc == 1)
|
||||
{
|
||||
jQuery('#jform_css_document-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -115,11 +115,11 @@ function vvvvvyz(add_css_document_vvvvvyz)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvza function
|
||||
function vvvvvza(add_javascript_file_vvvvvza)
|
||||
// the vvvvvzd function
|
||||
function vvvvvzd(add_javascript_file_vvvvvzd)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_javascript_file_vvvvvza == 1)
|
||||
if (add_javascript_file_vvvvvzd == 1)
|
||||
{
|
||||
jQuery('#jform_javascript_file-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -129,11 +129,11 @@ function vvvvvza(add_javascript_file_vvvvvza)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzb function
|
||||
function vvvvvzb(add_js_document_vvvvvzb)
|
||||
// the vvvvvze function
|
||||
function vvvvvze(add_js_document_vvvvvze)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_js_document_vvvvvzb == 1)
|
||||
if (add_js_document_vvvvvze == 1)
|
||||
{
|
||||
jQuery('#jform_js_document-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -143,11 +143,11 @@ function vvvvvzb(add_js_document_vvvvvzb)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzc function
|
||||
function vvvvvzc(add_css_vvvvvzc)
|
||||
// the vvvvvzf function
|
||||
function vvvvvzf(add_css_vvvvvzf)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_vvvvvzc == 1)
|
||||
if (add_css_vvvvvzf == 1)
|
||||
{
|
||||
jQuery('#jform_css-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -157,11 +157,11 @@ function vvvvvzc(add_css_vvvvvzc)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzd function
|
||||
function vvvvvzd(add_php_ajax_vvvvvzd)
|
||||
// the vvvvvzg function
|
||||
function vvvvvzg(add_php_ajax_vvvvvzg)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_ajax_vvvvvzd == 1)
|
||||
if (add_php_ajax_vvvvvzg == 1)
|
||||
{
|
||||
jQuery('#jform_ajax_input-lbl').closest('.control-group').show();
|
||||
jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').show();
|
||||
@ -173,11 +173,11 @@ function vvvvvzd(add_php_ajax_vvvvvzd)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvze function
|
||||
function vvvvvze(add_custom_button_vvvvvze)
|
||||
// the vvvvvzh function
|
||||
function vvvvvzh(add_custom_button_vvvvvzh)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_custom_button_vvvvvze == 1)
|
||||
if (add_custom_button_vvvvvzh == 1)
|
||||
{
|
||||
jQuery('#jform_custom_button-lbl').closest('.control-group').show();
|
||||
jQuery('#jform_php_controller-lbl').closest('.control-group').show();
|
||||
@ -191,20 +191,20 @@ function vvvvvze(add_custom_button_vvvvvze)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzf function
|
||||
function vvvvvzf(button_position_vvvvvzf)
|
||||
// the vvvvvzi function
|
||||
function vvvvvzi(button_position_vvvvvzi)
|
||||
{
|
||||
if (isSet(button_position_vvvvvzf) && button_position_vvvvvzf.constructor !== Array)
|
||||
if (isSet(button_position_vvvvvzi) && button_position_vvvvvzi.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvvzf = button_position_vvvvvzf;
|
||||
var button_position_vvvvvzf = [];
|
||||
button_position_vvvvvzf.push(temp_vvvvvzf);
|
||||
var temp_vvvvvzi = button_position_vvvvvzi;
|
||||
var button_position_vvvvvzi = [];
|
||||
button_position_vvvvvzi.push(temp_vvvvvzi);
|
||||
}
|
||||
else if (!isSet(button_position_vvvvvzf))
|
||||
else if (!isSet(button_position_vvvvvzi))
|
||||
{
|
||||
var button_position_vvvvvzf = [];
|
||||
var button_position_vvvvvzi = [];
|
||||
}
|
||||
var button_position = button_position_vvvvvzf.some(button_position_vvvvvzf_SomeFunc);
|
||||
var button_position = button_position_vvvvvzi.some(button_position_vvvvvzi_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -218,11 +218,11 @@ function vvvvvzf(button_position_vvvvvzf)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzf Some function
|
||||
function button_position_vvvvvzf_SomeFunc(button_position_vvvvvzf)
|
||||
// the vvvvvzi Some function
|
||||
function button_position_vvvvvzi_SomeFunc(button_position_vvvvvzi)
|
||||
{
|
||||
// set the function logic
|
||||
if (button_position_vvvvvzf == 5)
|
||||
if (button_position_vvvvvzi == 5)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -11,15 +11,15 @@
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var add_php_view_vvvvvzg = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvzg(add_php_view_vvvvvzg);
|
||||
var add_php_view_vvvvvzj = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvzj(add_php_view_vvvvvzj);
|
||||
});
|
||||
|
||||
// the vvvvvzg function
|
||||
function vvvvvzg(add_php_view_vvvvvzg)
|
||||
// the vvvvvzj function
|
||||
function vvvvvzj(add_php_view_vvvvvzj)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_view_vvvvvzg == 1)
|
||||
if (add_php_view_vvvvvzj == 1)
|
||||
{
|
||||
jQuery('#jform_php_view-lbl').closest('.control-group').show();
|
||||
}
|
||||
|
@ -698,12 +698,12 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
|
||||
}
|
||||
// the array of tables to store
|
||||
$tables = array(
|
||||
'validation_rule', 'fieldtype', 'field', 'admin_view', 'snippet', 'dynamic_get', 'custom_admin_view', 'site_view',
|
||||
'template', 'layout', 'joomla_component', 'language', 'language_translation', 'custom_code', 'placeholder',
|
||||
'validation_rule','class_extends', 'fieldtype', 'field', 'admin_view', 'snippet', 'dynamic_get', 'custom_admin_view', 'site_view','joomla_plugin_group',
|
||||
'template', 'layout', 'joomla_component', 'language', 'language_translation', 'custom_code', 'placeholder','class_property','class_method','joomla_plugin',
|
||||
'admin_fields', 'admin_fields_conditions', 'admin_fields_relations', 'admin_custom_tabs', 'component_admin_views',
|
||||
'component_site_views', 'component_custom_admin_views', 'component_updates', 'component_mysql_tweaks',
|
||||
'component_custom_admin_menus', 'component_config', 'component_dashboard', 'component_files_folders',
|
||||
'component_placeholders'
|
||||
'component_placeholders','component_plugins'
|
||||
);
|
||||
// get prefix
|
||||
$prefix = $this->_db->getPrefix();
|
||||
@ -2065,6 +2065,21 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
|
||||
$item = $this->setNewID($item, 'joomla_component', 'joomla_component', $type);
|
||||
}
|
||||
break;
|
||||
case 'component_plugins':
|
||||
// diverged id already updated
|
||||
if (!$diverged)
|
||||
{
|
||||
// update the joomla_component ID where needed
|
||||
$item = $this->setNewID($item, 'joomla_component', 'joomla_component', $type);
|
||||
}
|
||||
// subform fields to target
|
||||
$updaterT = array(
|
||||
// subformfield => array( field => type_value )
|
||||
'addjoomla_plugins' => array('plugin' => 'joomla_plugin')
|
||||
);
|
||||
// update the subform ids
|
||||
$this->updateSubformsIDs($item, 'component_plugins', $updaterT);
|
||||
break;
|
||||
case 'component_files_folders':
|
||||
// diverged id already updated
|
||||
if (!$diverged)
|
||||
@ -2859,6 +2874,7 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
|
||||
case 'component_config':
|
||||
case 'component_dashboard':
|
||||
case 'component_placeholders':
|
||||
case 'component_plugins':
|
||||
case 'component_files_folders':
|
||||
// get by joomla_component (since there should only be one of each component)
|
||||
$getter = array('joomla_component');
|
||||
|
@ -25,9 +25,13 @@ class ComponentbuilderModelJoomla_plugin extends JModelAdmin
|
||||
* @var array
|
||||
*/
|
||||
protected $tabLayoutFields = array(
|
||||
'details' => array(
|
||||
'code' => array(
|
||||
'left' => array(
|
||||
'note_beta_stage',
|
||||
'name',
|
||||
'class_extends',
|
||||
'joomla_plugin_group',
|
||||
'add_head',
|
||||
'note_plugin'
|
||||
),
|
||||
'right' => array(
|
||||
@ -35,13 +39,12 @@ class ComponentbuilderModelJoomla_plugin extends JModelAdmin
|
||||
'method_selection'
|
||||
),
|
||||
'fullwidth' => array(
|
||||
'head',
|
||||
'main_class_code',
|
||||
'note_linked_to_notice'
|
||||
),
|
||||
'above' => array(
|
||||
'name',
|
||||
'class_extends',
|
||||
'joomla_plugin_group'
|
||||
'system_name'
|
||||
)
|
||||
),
|
||||
'configparams' => array(
|
||||
@ -131,6 +134,12 @@ class ComponentbuilderModelJoomla_plugin extends JModelAdmin
|
||||
$item->main_class_code = base64_decode($item->main_class_code);
|
||||
}
|
||||
|
||||
if (!empty($item->head))
|
||||
{
|
||||
// base64 Decode head.
|
||||
$item->head = base64_decode($item->head);
|
||||
}
|
||||
|
||||
if (!empty($item->fields))
|
||||
{
|
||||
// Convert the fields field to an array.
|
||||
@ -461,6 +470,42 @@ class ComponentbuilderModelJoomla_plugin extends JModelAdmin
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to validate the form data.
|
||||
*
|
||||
* @param JForm $form The form to validate against.
|
||||
* @param array $data The data to validate.
|
||||
* @param string $group The name of the field group to validate.
|
||||
*
|
||||
* @return mixed Array of filtered data if valid, false otherwise.
|
||||
*
|
||||
* @see JFormRule
|
||||
* @see JFilterInput
|
||||
* @since 12.2
|
||||
*/
|
||||
public function validate($form, $data, $group = null)
|
||||
{
|
||||
// check if the not_required field is set
|
||||
if (ComponentbuilderHelper::checkString($data['not_required']))
|
||||
{
|
||||
$requiredFields = (array) explode(',',(string) $data['not_required']);
|
||||
$requiredFields = array_unique($requiredFields);
|
||||
// now change the required field attributes value
|
||||
foreach ($requiredFields as $requiredField)
|
||||
{
|
||||
// make sure there is a string value
|
||||
if (ComponentbuilderHelper::checkString($requiredField))
|
||||
{
|
||||
// change to false
|
||||
$form->setFieldAttribute($requiredField, 'required', 'false');
|
||||
// also clear the data set
|
||||
$data[$requiredField] = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
return parent::validate($form, $data, $group);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get the unique fields of this table.
|
||||
*
|
||||
@ -685,9 +730,9 @@ class ComponentbuilderModelJoomla_plugin extends JModelAdmin
|
||||
}
|
||||
|
||||
// Only for strings
|
||||
if (ComponentbuilderHelper::checkString($this->table->name) && !is_numeric($this->table->name))
|
||||
if (ComponentbuilderHelper::checkString($this->table->system_name) && !is_numeric($this->table->system_name))
|
||||
{
|
||||
$this->table->name = $this->generateUniqe('name',$this->table->name);
|
||||
$this->table->system_name = $this->generateUniqe('system_name',$this->table->system_name);
|
||||
}
|
||||
|
||||
// insert all set values
|
||||
@ -933,6 +978,12 @@ class ComponentbuilderModelJoomla_plugin extends JModelAdmin
|
||||
if (isset($data['main_class_code']))
|
||||
{
|
||||
$data['main_class_code'] = base64_encode($data['main_class_code']);
|
||||
}
|
||||
|
||||
// Set the head string to base64 string.
|
||||
if (isset($data['head']))
|
||||
{
|
||||
$data['head'] = base64_encode($data['head']);
|
||||
}
|
||||
|
||||
// Set the Params Items to data
|
||||
|
@ -27,7 +27,7 @@ class ComponentbuilderModelJoomla_plugins extends JModelList
|
||||
'a.ordering','ordering',
|
||||
'a.created_by','created_by',
|
||||
'a.modified_by','modified_by',
|
||||
'a.name','name',
|
||||
'a.system_name','system_name',
|
||||
'a.class_extends','class_extends',
|
||||
'a.joomla_plugin_group','joomla_plugin_group'
|
||||
);
|
||||
@ -237,8 +237,8 @@ class ComponentbuilderModelJoomla_plugins extends JModelList
|
||||
{
|
||||
$this->context .= '.' . $layout;
|
||||
}
|
||||
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
||||
$this->setState('filter.name', $name);
|
||||
$system_name = $this->getUserStateFromRequest($this->context . '.filter.system_name', 'filter_system_name');
|
||||
$this->setState('filter.system_name', $system_name);
|
||||
|
||||
$class_extends = $this->getUserStateFromRequest($this->context . '.filter.class_extends', 'filter_class_extends');
|
||||
$this->setState('filter.class_extends', $class_extends);
|
||||
@ -363,15 +363,10 @@ class ComponentbuilderModelJoomla_plugins extends JModelList
|
||||
else
|
||||
{
|
||||
$search = $db->quote('%' . $db->escape($search) . '%');
|
||||
$query->where('(a.name LIKE '.$search.' OR a.class_extends LIKE '.$search.' OR g.name LIKE '.$search.' OR a.joomla_plugin_group LIKE '.$search.' OR h.name LIKE '.$search.')');
|
||||
$query->where('(a.system_name LIKE '.$search.' OR a.class_extends LIKE '.$search.' OR g.name LIKE '.$search.' OR a.joomla_plugin_group LIKE '.$search.' OR h.name LIKE '.$search.' OR a.name LIKE '.$search.')');
|
||||
}
|
||||
}
|
||||
|
||||
// Filter by Name.
|
||||
if ($name = $this->getState('filter.name'))
|
||||
{
|
||||
$query->where('a.name = ' . $db->quote($db->escape($name)));
|
||||
}
|
||||
// Filter by class_extends.
|
||||
if ($class_extends = $this->getState('filter.class_extends'))
|
||||
{
|
||||
@ -392,106 +387,6 @@ class ComponentbuilderModelJoomla_plugins extends JModelList
|
||||
}
|
||||
|
||||
return $query;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get list export data.
|
||||
*
|
||||
* @return mixed An array of data items on success, false on failure.
|
||||
*/
|
||||
public function getExportData($pks)
|
||||
{
|
||||
// setup the query
|
||||
if (ComponentbuilderHelper::checkArray($pks))
|
||||
{
|
||||
// Set a value to know this is exporting method.
|
||||
$_export = true;
|
||||
// Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
// Create a new query object.
|
||||
$db = JFactory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// Select some fields
|
||||
$query->select('a.*');
|
||||
|
||||
// From the componentbuilder_joomla_plugin table
|
||||
$query->from($db->quoteName('#__componentbuilder_joomla_plugin', 'a'));
|
||||
$query->where('a.id IN (' . implode(',',$pks) . ')');
|
||||
// Implement View Level Access
|
||||
if (!$user->authorise('core.options', 'com_componentbuilder'))
|
||||
{
|
||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||
$query->where('a.access IN (' . $groups . ')');
|
||||
}
|
||||
|
||||
// Order the results by ordering
|
||||
$query->order('a.ordering ASC');
|
||||
|
||||
// Load the items
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
if ($db->getNumRows())
|
||||
{
|
||||
$items = $db->loadObjectList();
|
||||
|
||||
// set values to display correctly.
|
||||
if (ComponentbuilderHelper::checkArray($items))
|
||||
{
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
$access = (JFactory::getUser()->authorise('joomla_plugin.access', 'com_componentbuilder.joomla_plugin.' . (int) $item->id) && JFactory::getUser()->authorise('joomla_plugin.access', 'com_componentbuilder'));
|
||||
if (!$access)
|
||||
{
|
||||
unset($items[$nr]);
|
||||
continue;
|
||||
}
|
||||
|
||||
// decode main_class_code
|
||||
$item->main_class_code = base64_decode($item->main_class_code);
|
||||
// unset the values we don't want exported.
|
||||
unset($item->asset_id);
|
||||
unset($item->checked_out);
|
||||
unset($item->checked_out_time);
|
||||
}
|
||||
}
|
||||
// Add headers to items array.
|
||||
$headers = $this->getExImPortHeaders();
|
||||
if (ComponentbuilderHelper::checkObject($headers))
|
||||
{
|
||||
array_unshift($items,$headers);
|
||||
}
|
||||
return $items;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get header.
|
||||
*
|
||||
* @return mixed An array of data items on success, false on failure.
|
||||
*/
|
||||
public function getExImPortHeaders()
|
||||
{
|
||||
// Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
// get the columns
|
||||
$columns = $db->getTableColumns("#__componentbuilder_joomla_plugin");
|
||||
if (ComponentbuilderHelper::checkArray($columns))
|
||||
{
|
||||
// remove the headers you don't import/export.
|
||||
unset($columns['asset_id']);
|
||||
unset($columns['checked_out']);
|
||||
unset($columns['checked_out_time']);
|
||||
$headers = new stdClass();
|
||||
foreach ($columns as $column => $type)
|
||||
{
|
||||
$headers->{$column} = $column;
|
||||
}
|
||||
return $headers;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -509,7 +404,7 @@ class ComponentbuilderModelJoomla_plugins extends JModelList
|
||||
$id .= ':' . $this->getState('filter.ordering');
|
||||
$id .= ':' . $this->getState('filter.created_by');
|
||||
$id .= ':' . $this->getState('filter.modified_by');
|
||||
$id .= ':' . $this->getState('filter.name');
|
||||
$id .= ':' . $this->getState('filter.system_name');
|
||||
$id .= ':' . $this->getState('filter.class_extends');
|
||||
$id .= ':' . $this->getState('filter.joomla_plugin_group');
|
||||
|
||||
|
@ -21,5 +21,36 @@ use Joomla\Registry\Registry;
|
||||
*/
|
||||
class JFormRuleInt extends FormRule
|
||||
{
|
||||
/**
|
||||
* Method to test that an integer value was added.
|
||||
*
|
||||
* @param \SimpleXMLElement $element The SimpleXMLElement object representing the `<field>` tag for the form field object.
|
||||
* @param mixed $value The form field value to validate.
|
||||
* @param string $group The field name group control value. This acts as an array container for the field.
|
||||
* For example if the field has name="foo" and the group value is set to "bar" then the
|
||||
* full field name would end up being "bar[foo]".
|
||||
* @param Registry $input An optional Registry object with the entire data set to validate against the entire form.
|
||||
* @param Form $form The form object for which the field is being tested.
|
||||
*
|
||||
* @return boolean True if the value is valid integer, false otherwise.
|
||||
*
|
||||
*/
|
||||
public function test(\SimpleXMLElement $element, $value, $group = null, Registry $input = null, Form $form = null)
|
||||
{
|
||||
// Check if the field is required.
|
||||
$required = ((string) $element['required'] == 'true' || (string) $element['required'] == 'required');
|
||||
|
||||
// If the value is empty and the field is not required return True.
|
||||
if (($value === '' || $value === null) && ! $required)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
// now validate the value to be an integer
|
||||
// we need to validate a string with the integer in it
|
||||
// since this is how Joomla passes the value to the test method
|
||||
// so we use type coercion along with is_numeric
|
||||
return is_numeric($value) && is_int(+$value);
|
||||
// if you have a better idea... lets hear it.
|
||||
}
|
||||
}
|
||||
|
@ -189,7 +189,7 @@ class ComponentbuilderModelServer extends JModelAdmin
|
||||
*
|
||||
* @return mixed An array of data items on success, false on failure.
|
||||
*/
|
||||
public function getVyclinked_components()
|
||||
public function getVydlinked_components()
|
||||
{
|
||||
// Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
|
Reference in New Issue
Block a user