Resolved gh-410 to allow default data type values for the database to be set per fieldtype.
This commit is contained in:
@ -59,18 +59,18 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
</div>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'fieldTab', 'data_base', JText::_('COM_COMPONENTBUILDER_FIELD_DATA_BASE', true)); ?>
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'fieldTab', 'database', JText::_('COM_COMPONENTBUILDER_FIELD_DATABASE', true)); ?>
|
||||
<div class="row-fluid form-horizontal-desktop">
|
||||
<div class="span6">
|
||||
<?php echo JLayoutHelper::render('field.data_base_left', $this); ?>
|
||||
<?php echo JLayoutHelper::render('field.database_left', $this); ?>
|
||||
</div>
|
||||
<div class="span6">
|
||||
<?php echo JLayoutHelper::render('field.data_base_right', $this); ?>
|
||||
<?php echo JLayoutHelper::render('field.database_right', $this); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid form-horizontal-desktop">
|
||||
<div class="span12">
|
||||
<?php echo JLayoutHelper::render('field.data_base_fullwidth', $this); ?>
|
||||
<?php echo JLayoutHelper::render('field.database_fullwidth', $this); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
@ -337,7 +337,7 @@ jQuery('#adminForm').on('change', '#jform_fieldtype',function (e) {
|
||||
e.preventDefault();
|
||||
// get type value
|
||||
var fieldId = jQuery("#jform_fieldtype option:selected").val();
|
||||
getFieldOptions(fieldId);
|
||||
getFieldOptions(fieldId, true);
|
||||
// get the field type text
|
||||
var fieldText = jQuery("#jform_fieldtype option:selected").text().toLowerCase();
|
||||
// now check if database input is needed
|
||||
|
@ -44,6 +44,7 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
<div id="componentbuilder_loader" style="display: none;">
|
||||
<form action="<?php echo JRoute::_('index.php?option=com_componentbuilder&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
|
||||
<?php echo JLayoutHelper::render('fieldtype.details_above', $this); ?>
|
||||
<div class="form-horizontal">
|
||||
|
||||
<?php echo JHtml::_('bootstrap.startTabSet', 'fieldtypeTab', array('active' => 'details')); ?>
|
||||
@ -64,6 +65,17 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
</div>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'fieldtypeTab', 'database_defaults', JText::_('COM_COMPONENTBUILDER_FIELDTYPE_DATABASE_DEFAULTS', true)); ?>
|
||||
<div class="row-fluid form-horizontal-desktop">
|
||||
<div class="span6">
|
||||
<?php echo JLayoutHelper::render('fieldtype.database_defaults_left', $this); ?>
|
||||
</div>
|
||||
<div class="span6">
|
||||
<?php echo JLayoutHelper::render('fieldtype.database_defaults_right', $this); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
|
||||
<?php if ($this->canDo->get('field.access')) : ?>
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'fieldtypeTab', 'fields', JText::_('COM_COMPONENTBUILDER_FIELDTYPE_FIELDS', true)); ?>
|
||||
<div class="row-fluid form-horizontal-desktop">
|
||||
@ -121,4 +133,364 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_datalenght listeners for datalenght_vvvvwba function
|
||||
jQuery('#jform_datalenght').on('keyup',function()
|
||||
{
|
||||
var datalenght_vvvvwba = jQuery("#jform_datalenght").val();
|
||||
var has_defaults_vvvvwba = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwba(datalenght_vvvvwba,has_defaults_vvvvwba);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datalenght',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datalenght_vvvvwba = jQuery("#jform_datalenght").val();
|
||||
var has_defaults_vvvvwba = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwba(datalenght_vvvvwba,has_defaults_vvvvwba);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwba function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var datalenght_vvvvwba = jQuery("#jform_datalenght").val();
|
||||
var has_defaults_vvvvwba = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwba(datalenght_vvvvwba,has_defaults_vvvvwba);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datalenght_vvvvwba = jQuery("#jform_datalenght").val();
|
||||
var has_defaults_vvvvwba = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwba(datalenght_vvvvwba,has_defaults_vvvvwba);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datadefault listeners for datadefault_vvvvwbc function
|
||||
jQuery('#jform_datadefault').on('keyup',function()
|
||||
{
|
||||
var datadefault_vvvvwbc = jQuery("#jform_datadefault").val();
|
||||
var has_defaults_vvvvwbc = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbc(datadefault_vvvvwbc,has_defaults_vvvvwbc);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datadefault',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datadefault_vvvvwbc = jQuery("#jform_datadefault").val();
|
||||
var has_defaults_vvvvwbc = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbc(datadefault_vvvvwbc,has_defaults_vvvvwbc);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwbc function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var datadefault_vvvvwbc = jQuery("#jform_datadefault").val();
|
||||
var has_defaults_vvvvwbc = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbc(datadefault_vvvvwbc,has_defaults_vvvvwbc);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datadefault_vvvvwbc = jQuery("#jform_datadefault").val();
|
||||
var has_defaults_vvvvwbc = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbc(datadefault_vvvvwbc,has_defaults_vvvvwbc);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwbe function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwbe = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbe = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbe(datatype_vvvvwbe,has_defaults_vvvvwbe);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwbe = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbe = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbe(datatype_vvvvwbe,has_defaults_vvvvwbe);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwbe function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwbe = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbe = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbe(datatype_vvvvwbe,has_defaults_vvvvwbe);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwbe = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbe = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbe(datatype_vvvvwbe,has_defaults_vvvvwbe);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwbf function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwbf = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var datatype_vvvvwbf = jQuery("#jform_datatype").val();
|
||||
vvvvwbf(has_defaults_vvvvwbf,datatype_vvvvwbf);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwbf = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var datatype_vvvvwbf = jQuery("#jform_datatype").val();
|
||||
vvvvwbf(has_defaults_vvvvwbf,datatype_vvvvwbf);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwbf function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwbf = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var datatype_vvvvwbf = jQuery("#jform_datatype").val();
|
||||
vvvvwbf(has_defaults_vvvvwbf,datatype_vvvvwbf);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwbf = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var datatype_vvvvwbf = jQuery("#jform_datatype").val();
|
||||
vvvvwbf(has_defaults_vvvvwbf,datatype_vvvvwbf);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwbg function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwbg = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbg = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbg(datatype_vvvvwbg,has_defaults_vvvvwbg);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwbg = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbg = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbg(datatype_vvvvwbg,has_defaults_vvvvwbg);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwbg function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwbg = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbg = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbg(datatype_vvvvwbg,has_defaults_vvvvwbg);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwbg = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbg = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbg(datatype_vvvvwbg,has_defaults_vvvvwbg);
|
||||
|
||||
});
|
||||
|
||||
// #jform_store listeners for store_vvvvwbi function
|
||||
jQuery('#jform_store').on('keyup',function()
|
||||
{
|
||||
var store_vvvvwbi = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbi = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbi = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbi(store_vvvvwbi,datatype_vvvvwbi,has_defaults_vvvvwbi);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_store',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var store_vvvvwbi = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbi = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbi = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbi(store_vvvvwbi,datatype_vvvvwbi,has_defaults_vvvvwbi);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwbi function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var store_vvvvwbi = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbi = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbi = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbi(store_vvvvwbi,datatype_vvvvwbi,has_defaults_vvvvwbi);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var store_vvvvwbi = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbi = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbi = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbi(store_vvvvwbi,datatype_vvvvwbi,has_defaults_vvvvwbi);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwbi function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var store_vvvvwbi = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbi = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbi = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbi(store_vvvvwbi,datatype_vvvvwbi,has_defaults_vvvvwbi);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var store_vvvvwbi = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbi = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbi = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbi(store_vvvvwbi,datatype_vvvvwbi,has_defaults_vvvvwbi);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwbj function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwbj = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwbj = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwbj = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbj(datatype_vvvvwbj,store_vvvvwbj,has_defaults_vvvvwbj);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwbj = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwbj = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwbj = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbj(datatype_vvvvwbj,store_vvvvwbj,has_defaults_vvvvwbj);
|
||||
|
||||
});
|
||||
|
||||
// #jform_store listeners for store_vvvvwbj function
|
||||
jQuery('#jform_store').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwbj = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwbj = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwbj = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbj(datatype_vvvvwbj,store_vvvvwbj,has_defaults_vvvvwbj);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_store',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwbj = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwbj = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwbj = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbj(datatype_vvvvwbj,store_vvvvwbj,has_defaults_vvvvwbj);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwbj function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwbj = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwbj = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwbj = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbj(datatype_vvvvwbj,store_vvvvwbj,has_defaults_vvvvwbj);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwbj = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwbj = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwbj = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbj(datatype_vvvvwbj,store_vvvvwbj,has_defaults_vvvvwbj);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwbk function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwbk = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwbk = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbk = jQuery("#jform_datatype").val();
|
||||
vvvvwbk(has_defaults_vvvvwbk,store_vvvvwbk,datatype_vvvvwbk);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwbk = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwbk = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbk = jQuery("#jform_datatype").val();
|
||||
vvvvwbk(has_defaults_vvvvwbk,store_vvvvwbk,datatype_vvvvwbk);
|
||||
|
||||
});
|
||||
|
||||
// #jform_store listeners for store_vvvvwbk function
|
||||
jQuery('#jform_store').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwbk = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwbk = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbk = jQuery("#jform_datatype").val();
|
||||
vvvvwbk(has_defaults_vvvvwbk,store_vvvvwbk,datatype_vvvvwbk);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_store',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwbk = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwbk = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbk = jQuery("#jform_datatype").val();
|
||||
vvvvwbk(has_defaults_vvvvwbk,store_vvvvwbk,datatype_vvvvwbk);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwbk function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwbk = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwbk = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbk = jQuery("#jform_datatype").val();
|
||||
vvvvwbk(has_defaults_vvvvwbk,store_vvvvwbk,datatype_vvvvwbk);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwbk = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwbk = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbk = jQuery("#jform_datatype").val();
|
||||
vvvvwbk(has_defaults_vvvvwbk,store_vvvvwbk,datatype_vvvvwbk);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwbl function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwbl = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbl(has_defaults_vvvvwbl);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwbl = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbl(has_defaults_vvvvwbl);
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
@ -57,7 +57,7 @@ class ComponentbuilderViewFieldtype extends JViewLegacy
|
||||
}
|
||||
|
||||
// Get Linked view data
|
||||
$this->waffields = $this->get('Waffields');
|
||||
$this->wamfields = $this->get('Wamfields');
|
||||
|
||||
// Set the toolbar
|
||||
$this->addToolBar();
|
||||
|
@ -117,93 +117,93 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_location listeners for location_vvvvwbk function
|
||||
// #jform_location listeners for location_vvvvwbw function
|
||||
jQuery('#jform_location').on('keyup',function()
|
||||
{
|
||||
var location_vvvvwbk = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwbk(location_vvvvwbk);
|
||||
var location_vvvvwbw = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwbw(location_vvvvwbw);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_location',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var location_vvvvwbk = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwbk(location_vvvvwbk);
|
||||
var location_vvvvwbw = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwbw(location_vvvvwbw);
|
||||
|
||||
});
|
||||
|
||||
// #jform_location listeners for location_vvvvwbl function
|
||||
// #jform_location listeners for location_vvvvwbx function
|
||||
jQuery('#jform_location').on('keyup',function()
|
||||
{
|
||||
var location_vvvvwbl = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwbl(location_vvvvwbl);
|
||||
var location_vvvvwbx = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwbx(location_vvvvwbx);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_location',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var location_vvvvwbl = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwbl(location_vvvvwbl);
|
||||
var location_vvvvwbx = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwbx(location_vvvvwbx);
|
||||
|
||||
});
|
||||
|
||||
// #jform_type listeners for type_vvvvwbm function
|
||||
// #jform_type listeners for type_vvvvwby function
|
||||
jQuery('#jform_type').on('keyup',function()
|
||||
{
|
||||
var type_vvvvwbm = jQuery("#jform_type").val();
|
||||
vvvvwbm(type_vvvvwbm);
|
||||
var type_vvvvwby = jQuery("#jform_type").val();
|
||||
vvvvwby(type_vvvvwby);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var type_vvvvwbm = jQuery("#jform_type").val();
|
||||
vvvvwbm(type_vvvvwbm);
|
||||
var type_vvvvwby = jQuery("#jform_type").val();
|
||||
vvvvwby(type_vvvvwby);
|
||||
|
||||
});
|
||||
|
||||
// #jform_type listeners for type_vvvvwbn function
|
||||
// #jform_type listeners for type_vvvvwbz function
|
||||
jQuery('#jform_type').on('keyup',function()
|
||||
{
|
||||
var type_vvvvwbn = jQuery("#jform_type").val();
|
||||
vvvvwbn(type_vvvvwbn);
|
||||
var type_vvvvwbz = jQuery("#jform_type").val();
|
||||
vvvvwbz(type_vvvvwbz);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var type_vvvvwbn = jQuery("#jform_type").val();
|
||||
vvvvwbn(type_vvvvwbn);
|
||||
var type_vvvvwbz = jQuery("#jform_type").val();
|
||||
vvvvwbz(type_vvvvwbz);
|
||||
|
||||
});
|
||||
|
||||
// #jform_type listeners for type_vvvvwbo function
|
||||
// #jform_type listeners for type_vvvvwca function
|
||||
jQuery('#jform_type').on('keyup',function()
|
||||
{
|
||||
var type_vvvvwbo = jQuery("#jform_type").val();
|
||||
vvvvwbo(type_vvvvwbo);
|
||||
var type_vvvvwca = jQuery("#jform_type").val();
|
||||
vvvvwca(type_vvvvwca);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var type_vvvvwbo = jQuery("#jform_type").val();
|
||||
vvvvwbo(type_vvvvwbo);
|
||||
var type_vvvvwca = jQuery("#jform_type").val();
|
||||
vvvvwca(type_vvvvwca);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwbp function
|
||||
// #jform_target listeners for target_vvvvwcb function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwbp = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwbp(target_vvvvwbp);
|
||||
var target_vvvvwcb = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcb(target_vvvvwcb);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwbp = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwbp(target_vvvvwbp);
|
||||
var target_vvvvwcb = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcb(target_vvvvwcb);
|
||||
|
||||
});
|
||||
|
||||
|
@ -126,169 +126,169 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_protocol listeners for protocol_vvvvwba function
|
||||
// #jform_protocol listeners for protocol_vvvvwbm function
|
||||
jQuery('#jform_protocol').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwba = jQuery("#jform_protocol").val();
|
||||
vvvvwba(protocol_vvvvwba);
|
||||
var protocol_vvvvwbm = jQuery("#jform_protocol").val();
|
||||
vvvvwbm(protocol_vvvvwbm);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwba = jQuery("#jform_protocol").val();
|
||||
vvvvwba(protocol_vvvvwba);
|
||||
var protocol_vvvvwbm = jQuery("#jform_protocol").val();
|
||||
vvvvwbm(protocol_vvvvwbm);
|
||||
|
||||
});
|
||||
|
||||
// #jform_protocol listeners for protocol_vvvvwbb function
|
||||
// #jform_protocol listeners for protocol_vvvvwbn function
|
||||
jQuery('#jform_protocol').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwbb = jQuery("#jform_protocol").val();
|
||||
vvvvwbb(protocol_vvvvwbb);
|
||||
var protocol_vvvvwbn = jQuery("#jform_protocol").val();
|
||||
vvvvwbn(protocol_vvvvwbn);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwbb = jQuery("#jform_protocol").val();
|
||||
vvvvwbb(protocol_vvvvwbb);
|
||||
var protocol_vvvvwbn = jQuery("#jform_protocol").val();
|
||||
vvvvwbn(protocol_vvvvwbn);
|
||||
|
||||
});
|
||||
|
||||
// #jform_protocol listeners for protocol_vvvvwbc function
|
||||
// #jform_protocol listeners for protocol_vvvvwbo function
|
||||
jQuery('#jform_protocol').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwbc = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbc = jQuery("#jform_authentication").val();
|
||||
vvvvwbc(protocol_vvvvwbc,authentication_vvvvwbc);
|
||||
var protocol_vvvvwbo = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbo = jQuery("#jform_authentication").val();
|
||||
vvvvwbo(protocol_vvvvwbo,authentication_vvvvwbo);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwbc = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbc = jQuery("#jform_authentication").val();
|
||||
vvvvwbc(protocol_vvvvwbc,authentication_vvvvwbc);
|
||||
var protocol_vvvvwbo = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbo = jQuery("#jform_authentication").val();
|
||||
vvvvwbo(protocol_vvvvwbo,authentication_vvvvwbo);
|
||||
|
||||
});
|
||||
|
||||
// #jform_authentication listeners for authentication_vvvvwbc function
|
||||
// #jform_authentication listeners for authentication_vvvvwbo function
|
||||
jQuery('#jform_authentication').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwbc = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbc = jQuery("#jform_authentication").val();
|
||||
vvvvwbc(protocol_vvvvwbc,authentication_vvvvwbc);
|
||||
var protocol_vvvvwbo = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbo = jQuery("#jform_authentication").val();
|
||||
vvvvwbo(protocol_vvvvwbo,authentication_vvvvwbo);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_authentication',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwbc = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbc = jQuery("#jform_authentication").val();
|
||||
vvvvwbc(protocol_vvvvwbc,authentication_vvvvwbc);
|
||||
var protocol_vvvvwbo = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbo = jQuery("#jform_authentication").val();
|
||||
vvvvwbo(protocol_vvvvwbo,authentication_vvvvwbo);
|
||||
|
||||
});
|
||||
|
||||
// #jform_protocol listeners for protocol_vvvvwbe function
|
||||
// #jform_protocol listeners for protocol_vvvvwbq function
|
||||
jQuery('#jform_protocol').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwbe = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbe = jQuery("#jform_authentication").val();
|
||||
vvvvwbe(protocol_vvvvwbe,authentication_vvvvwbe);
|
||||
var protocol_vvvvwbq = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbq = jQuery("#jform_authentication").val();
|
||||
vvvvwbq(protocol_vvvvwbq,authentication_vvvvwbq);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwbe = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbe = jQuery("#jform_authentication").val();
|
||||
vvvvwbe(protocol_vvvvwbe,authentication_vvvvwbe);
|
||||
var protocol_vvvvwbq = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbq = jQuery("#jform_authentication").val();
|
||||
vvvvwbq(protocol_vvvvwbq,authentication_vvvvwbq);
|
||||
|
||||
});
|
||||
|
||||
// #jform_authentication listeners for authentication_vvvvwbe function
|
||||
// #jform_authentication listeners for authentication_vvvvwbq function
|
||||
jQuery('#jform_authentication').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwbe = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbe = jQuery("#jform_authentication").val();
|
||||
vvvvwbe(protocol_vvvvwbe,authentication_vvvvwbe);
|
||||
var protocol_vvvvwbq = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbq = jQuery("#jform_authentication").val();
|
||||
vvvvwbq(protocol_vvvvwbq,authentication_vvvvwbq);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_authentication',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwbe = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbe = jQuery("#jform_authentication").val();
|
||||
vvvvwbe(protocol_vvvvwbe,authentication_vvvvwbe);
|
||||
var protocol_vvvvwbq = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbq = jQuery("#jform_authentication").val();
|
||||
vvvvwbq(protocol_vvvvwbq,authentication_vvvvwbq);
|
||||
|
||||
});
|
||||
|
||||
// #jform_protocol listeners for protocol_vvvvwbg function
|
||||
// #jform_protocol listeners for protocol_vvvvwbs function
|
||||
jQuery('#jform_protocol').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwbg = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbg = jQuery("#jform_authentication").val();
|
||||
vvvvwbg(protocol_vvvvwbg,authentication_vvvvwbg);
|
||||
var protocol_vvvvwbs = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbs = jQuery("#jform_authentication").val();
|
||||
vvvvwbs(protocol_vvvvwbs,authentication_vvvvwbs);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwbg = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbg = jQuery("#jform_authentication").val();
|
||||
vvvvwbg(protocol_vvvvwbg,authentication_vvvvwbg);
|
||||
var protocol_vvvvwbs = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbs = jQuery("#jform_authentication").val();
|
||||
vvvvwbs(protocol_vvvvwbs,authentication_vvvvwbs);
|
||||
|
||||
});
|
||||
|
||||
// #jform_authentication listeners for authentication_vvvvwbg function
|
||||
// #jform_authentication listeners for authentication_vvvvwbs function
|
||||
jQuery('#jform_authentication').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwbg = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbg = jQuery("#jform_authentication").val();
|
||||
vvvvwbg(protocol_vvvvwbg,authentication_vvvvwbg);
|
||||
var protocol_vvvvwbs = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbs = jQuery("#jform_authentication").val();
|
||||
vvvvwbs(protocol_vvvvwbs,authentication_vvvvwbs);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_authentication',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwbg = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbg = jQuery("#jform_authentication").val();
|
||||
vvvvwbg(protocol_vvvvwbg,authentication_vvvvwbg);
|
||||
var protocol_vvvvwbs = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbs = jQuery("#jform_authentication").val();
|
||||
vvvvwbs(protocol_vvvvwbs,authentication_vvvvwbs);
|
||||
|
||||
});
|
||||
|
||||
// #jform_protocol listeners for protocol_vvvvwbi function
|
||||
// #jform_protocol listeners for protocol_vvvvwbu function
|
||||
jQuery('#jform_protocol').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwbi = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbi = jQuery("#jform_authentication").val();
|
||||
vvvvwbi(protocol_vvvvwbi,authentication_vvvvwbi);
|
||||
var protocol_vvvvwbu = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbu = jQuery("#jform_authentication").val();
|
||||
vvvvwbu(protocol_vvvvwbu,authentication_vvvvwbu);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwbi = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbi = jQuery("#jform_authentication").val();
|
||||
vvvvwbi(protocol_vvvvwbi,authentication_vvvvwbi);
|
||||
var protocol_vvvvwbu = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbu = jQuery("#jform_authentication").val();
|
||||
vvvvwbu(protocol_vvvvwbu,authentication_vvvvwbu);
|
||||
|
||||
});
|
||||
|
||||
// #jform_authentication listeners for authentication_vvvvwbi function
|
||||
// #jform_authentication listeners for authentication_vvvvwbu function
|
||||
jQuery('#jform_authentication').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwbi = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbi = jQuery("#jform_authentication").val();
|
||||
vvvvwbi(protocol_vvvvwbi,authentication_vvvvwbi);
|
||||
var protocol_vvvvwbu = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbu = jQuery("#jform_authentication").val();
|
||||
vvvvwbu(protocol_vvvvwbu,authentication_vvvvwbu);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_authentication',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwbi = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbi = jQuery("#jform_authentication").val();
|
||||
vvvvwbi(protocol_vvvvwbi,authentication_vvvvwbi);
|
||||
var protocol_vvvvwbu = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbu = jQuery("#jform_authentication").val();
|
||||
vvvvwbu(protocol_vvvvwbu,authentication_vvvvwbu);
|
||||
|
||||
});
|
||||
|
||||
|
@ -57,7 +57,7 @@ class ComponentbuilderViewServer extends JViewLegacy
|
||||
}
|
||||
|
||||
// Get Linked view data
|
||||
$this->waplinked_components = $this->get('Waplinked_components');
|
||||
$this->wawlinked_components = $this->get('Wawlinked_components');
|
||||
|
||||
// Set the toolbar
|
||||
$this->addToolBar();
|
||||
|
Reference in New Issue
Block a user