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:
@ -24,6 +24,7 @@
|
||||
|
||||
|
||||
|
||||
|
||||
function getFieldSelectOptions_server(fieldId){
|
||||
var getUrl = "index.php?option=com_componentbuilder&task=ajax.fieldSelectOptions&format=json";
|
||||
if(token.length > 0 && fieldId > 0){
|
||||
|
@ -1196,6 +1196,7 @@ function isSet(val)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
// get the linked details
|
||||
|
@ -152,13 +152,13 @@
|
||||
required="false"
|
||||
description="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_ACCESS_DESCRIPTION"
|
||||
class="inputbox" />
|
||||
<!-- Public_access Field. Type: Checkbox. (joomla)-->
|
||||
<!-- Field. Type: Checkbox. (joomla)-->
|
||||
<field type="checkbox"
|
||||
name="public_access"
|
||||
label="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_PUBLIC_ACCESS_LABEL"
|
||||
name="show_title"
|
||||
label="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_LABEL"
|
||||
value="1"
|
||||
required="false"
|
||||
description="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_PUBLIC_ACCESS_DESCRIPTION"
|
||||
description="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_DESCRIPTION"
|
||||
class="inputbox" />
|
||||
</form>
|
||||
</field>
|
||||
|
@ -438,6 +438,7 @@ function isSet(val)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
// get the linked details
|
||||
|
@ -224,6 +224,7 @@ function isSet(val)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var target = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
|
@ -1428,6 +1428,7 @@ function isSet(val)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
// get the linked details
|
||||
|
@ -509,6 +509,7 @@ function isSet(val)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
// get the linked details
|
||||
|
@ -880,6 +880,7 @@ function isSet(val)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
// check what is the dashboard switch
|
||||
|
@ -665,11 +665,11 @@
|
||||
<option value="1">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
|
||||
<option value="0">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
|
||||
</field>
|
||||
<!-- Spacer_hr_a Field. Type: Spacer. A None Database Field. (joomla)-->
|
||||
<!-- Spacer_hr_one Field. Type: Spacer. A None Database Field. (joomla)-->
|
||||
<field type="spacer"
|
||||
name="spacer_hr_a"
|
||||
name="spacer_hr_one"
|
||||
hr="true"
|
||||
class="spacer_hr_a" />
|
||||
class="spacer_hr_one" />
|
||||
<!-- Addfootable Field. Type: List. (joomla)-->
|
||||
<field type="list"
|
||||
name="addfootable"
|
||||
@ -702,11 +702,11 @@
|
||||
<option value="1">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
|
||||
<option value="0">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
|
||||
</field>
|
||||
<!-- Spacer_hr_b Field. Type: Spacer. A None Database Field. (joomla)-->
|
||||
<!-- Spacer_hr_two Field. Type: Spacer. A None Database Field. (joomla)-->
|
||||
<field type="spacer"
|
||||
name="spacer_hr_b"
|
||||
name="spacer_hr_two"
|
||||
hr="true"
|
||||
class="spacer_hr_b" />
|
||||
class="spacer_hr_two" />
|
||||
<!-- Add_php_helper_admin Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_php_helper_admin"
|
||||
@ -736,11 +736,11 @@
|
||||
<option value="1">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
|
||||
<option value="0">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
|
||||
</field>
|
||||
<!-- Spacer_hr_c Field. Type: Spacer. A None Database Field. (joomla)-->
|
||||
<!-- Spacer_hr_three Field. Type: Spacer. A None Database Field. (joomla)-->
|
||||
<field type="spacer"
|
||||
name="spacer_hr_c"
|
||||
name="spacer_hr_three"
|
||||
hr="true"
|
||||
class="spacer_hr_c" />
|
||||
class="spacer_hr_three" />
|
||||
<!-- Add_php_helper_site Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_php_helper_site"
|
||||
@ -788,11 +788,11 @@
|
||||
<option value="1">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
|
||||
<option value="0">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
|
||||
</field>
|
||||
<!-- Spacer_hr_d Field. Type: Spacer. A None Database Field. (joomla)-->
|
||||
<!-- Spacer_hr_four Field. Type: Spacer. A None Database Field. (joomla)-->
|
||||
<field type="spacer"
|
||||
name="spacer_hr_d"
|
||||
name="spacer_hr_four"
|
||||
hr="true"
|
||||
class="spacer_hr_d" />
|
||||
class="spacer_hr_four" />
|
||||
<!-- Add_css_admin Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_css_admin"
|
||||
@ -846,11 +846,11 @@
|
||||
<option value="1">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DEFAULT</option>
|
||||
<option value="2">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DYNAMIC</option>
|
||||
</field>
|
||||
<!-- Spacer_hr_e Field. Type: Spacer. A None Database Field. (joomla)-->
|
||||
<!-- Spacer_hr_five Field. Type: Spacer. A None Database Field. (joomla)-->
|
||||
<field type="spacer"
|
||||
name="spacer_hr_e"
|
||||
name="spacer_hr_five"
|
||||
hr="true"
|
||||
class="spacer_hr_e" />
|
||||
class="spacer_hr_five" />
|
||||
<!-- Dashboard Field. Type: Dynamicdashboard. (custom)-->
|
||||
<field type="dynamicdashboard"
|
||||
name="dashboard"
|
||||
@ -947,11 +947,11 @@
|
||||
<option value="1">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
|
||||
<option value="0">COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
|
||||
</field>
|
||||
<!-- Spacer_hr_f Field. Type: Spacer. A None Database Field. (joomla)-->
|
||||
<!-- Spacer_hr_six Field. Type: Spacer. A None Database Field. (joomla)-->
|
||||
<field type="spacer"
|
||||
name="spacer_hr_f"
|
||||
name="spacer_hr_six"
|
||||
hr="true"
|
||||
class="spacer_hr_f" />
|
||||
class="spacer_hr_six" />
|
||||
<!-- Add_php_method_uninstall Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="add_php_method_uninstall"
|
||||
|
@ -24,6 +24,7 @@
|
||||
|
||||
|
||||
|
||||
|
||||
jQuery(document).ready(function($)
|
||||
{
|
||||
// set button to add more languages
|
||||
|
@ -100,6 +100,7 @@ function isSet(val)
|
||||
}
|
||||
|
||||
|
||||
|
||||
function getSnippetDetails_server(snippetId){
|
||||
var getUrl = "index.php?option=com_componentbuilder&task=ajax.snippetDetails&format=json";
|
||||
if(token.length > 0 && snippetId > 0){
|
||||
|
@ -414,6 +414,7 @@ function isSet(val)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
// get the linked details
|
||||
|
@ -479,6 +479,7 @@ function isSet(val)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
// get the linked details
|
||||
|
@ -100,6 +100,7 @@ function isSet(val)
|
||||
}
|
||||
|
||||
|
||||
|
||||
function getSnippetDetails_server(snippetId){
|
||||
var getUrl = "index.php?option=com_componentbuilder&task=ajax.snippetDetails&format=json";
|
||||
if(token.length > 0 && snippetId > 0){
|
||||
|
Reference in New Issue
Block a user