Expanded the automatic DB update feature, to insure that any changes to a field name/datatype/lenght will now also create a DB update, resolve gh-241

This commit is contained in:
2018-03-11 04:44:43 +02:00
parent 79747403b6
commit ee949fbe6e
40 changed files with 440 additions and 407 deletions

View File

@@ -119,6 +119,7 @@ $componentParams = JComponentHelper::getParams('com_componentbuilder');
<script type="text/javascript">
<?php $numberAddconditions = range(0, count($this->item->addconditions) + 3, 1);?>
// for the values already set

View File

@@ -703,7 +703,8 @@ jQuery('input.form-field-repeatable').on('row-add', function (e) {
jQuery('#jform_custom_button_fields_icomoon_<?php echo $nr; ?>_chzn').closest("td").append(span);
});
});
<?php endforeach; ?><?php $numberAddtables = range(0, count($this->item->addtables) + 3, 1);?>
<?php endforeach; ?>
<?php $numberAddtables = range(0, count($this->item->addtables) + 3, 1);?>
// for the values already set
jQuery(document).ready(function(){

View File

@@ -355,7 +355,8 @@ jQuery('input.form-field-repeatable').on('row-add', function (e) {
jQuery('#jform_custom_button_fields_icomoon_<?php echo $nr; ?>_chzn').closest("td").append(span);
});
});
<?php endforeach; ?>jQuery(function() {
<?php endforeach; ?>
jQuery(function() {
jQuery("code").click(function() {
jQuery(this).selText().addClass("selected");
});

View File

@@ -226,6 +226,7 @@ jQuery('#adminForm').on('change', '#jform_target',function (e)
});
jQuery('#adminForm').on('change', '#jform_function_name',function (e)
{
e.preventDefault();

View File

@@ -620,6 +620,7 @@ jQuery('#adminForm').on('change', '#jform_add_php_router_parse',function (e)
});
<?php $fieldNrs = range(0,50,1); ?>
<?php $fieldNames = array('db' => 'Db','view' => 'View'); ?>
// for the vlaues already set

View File

@@ -292,6 +292,7 @@ jQuery('#adminForm').on('change', '#jform_add_javascript_views_footer',function
});
jQuery(function() {
jQuery("code").click(function() {
jQuery(this).selText().addClass("selected");

View File

@@ -745,6 +745,7 @@ jQuery('#adminForm').on('change', '#jform_dashboard_type',function (e)
<?php
$app = JFactory::getApplication();
?>

View File

@@ -119,6 +119,7 @@ $componentParams = JComponentHelper::getParams('com_componentbuilder');
<?php
$app = JFactory::getApplication();
?>

View File

@@ -160,7 +160,8 @@ jQuery(function() {
jQuery('#open-libraries').html('<a href="index.php?option=com_componentbuilder&view=libraries"><?php echo JText::_('COM_COMPONENTBUILDER_LIBRARIES'); ?></a>');
});
jQuery('#jform_snippet').closest('.input-append').addClass('jform_snippet_input_width');
jQuery('#jform_dynamic_get').closest('.input-append').addClass('jform_dynamic_get_input_width');jQuery(function() {
jQuery('#jform_dynamic_get').closest('.input-append').addClass('jform_dynamic_get_input_width');
jQuery(function() {
jQuery("code").click(function() {
jQuery(this).selText().addClass("selected");
});

View File

@@ -278,6 +278,7 @@ jQuery('#adminForm').on('change', '#jform_type',function (e)
});
<?php $numberAddconditions = range(0, count($this->item->addconditions) + 3, 1);?>
// for the values already set

View File

@@ -373,7 +373,8 @@ jQuery('input.form-field-repeatable').on('row-add', function (e) {
jQuery('#jform_custom_button_fields_icomoon_<?php echo $nr; ?>_chzn').closest("td").append(span);
});
});
<?php endforeach; ?>jQuery(function() {
<?php endforeach; ?>
jQuery(function() {
jQuery("code").click(function() {
jQuery(this).selText().addClass("selected");
});

View File

@@ -160,7 +160,8 @@ jQuery(function() {
jQuery('#open-libraries').html('<a href="index.php?option=com_componentbuilder&view=libraries"><?php echo JText::_('COM_COMPONENTBUILDER_LIBRARIES'); ?></a>');
});
jQuery('#jform_snippet').closest('.input-append').addClass('jform_snippet_input_width');
jQuery('#jform_dynamic_get').closest('.input-append').addClass('jform_dynamic_get_input_width');jQuery(function() {
jQuery('#jform_dynamic_get').closest('.input-append').addClass('jform_dynamic_get_input_width');
jQuery(function() {
jQuery("code").click(function() {
jQuery(this).selText().addClass("selected");
});