Merged in darojas/processmaker/master-core (pull request #1233)

PM-1040. Remove code from the Community version. Fix 14636 New Functionality - To allow set index in tables.
This commit is contained in:
Julio Cesar Laura Avendaño
2014-12-04 16:21:30 -04:00
2 changed files with 13 additions and 7 deletions

View File

@@ -160,14 +160,12 @@ Ext.onReady(function(){
hidden: true,
hideable:false
},
/*----------------------------------********---------------------------------*/
{
id: 'field_index',
dataIndex: 'field_index',
hidden: true,
hideable:false
},
/*----------------------------------********---------------------------------*/
{
id: 'field_null',
dataIndex: 'field_null',
@@ -306,7 +304,9 @@ Ext.onReady(function(){
disabled: true,
inputValue: 'always'
}
}, {
}
/*----------------------------------********---------------------------------*/
, {
xtype: 'booleancolumn',
header: _('ID_INDEX'),
dataIndex: 'field_index',
@@ -321,6 +321,7 @@ Ext.onReady(function(){
inputValue: 'always'
}
}
/*----------------------------------********---------------------------------*/
];
//if permissions plugin is enabled
@@ -1074,12 +1075,14 @@ function editorFieldsEnableDisable(fieldTypeValue, fieldNull, fieldPrimaryKey, f
fieldPrimaryKey.setValue(false);
}
/*----------------------------------********---------------------------------*/
if (swI == 1) {
fieldIndex.enable();
} else {
fieldIndex.disable();
fieldIndex.setValue(false);
}
/*----------------------------------********---------------------------------*/
if (swAI == 1) {
fieldInc.enable();

View File

@@ -408,7 +408,9 @@ Ext.onReady(function(){
disabled: true,
inputValue: 'always'
}
}, {
}
/*----------------------------------********---------------------------------*/
, {
xtype: 'booleancolumn',
header: _('ID_INDEX'),
dataIndex: 'field_index',
@@ -423,6 +425,7 @@ Ext.onReady(function(){
inputValue: 'always'
}
}
/*----------------------------------********---------------------------------*/
];
function validateFieldSizeAutoincrement(valueType, defaultValue) {
@@ -1300,14 +1303,14 @@ function editorFieldsEnableDisable(fieldTypeValue, fieldIndex, fieldInc, sizeEdi
swAI = 0;
swI = 0;
}
/*----------------------------------********---------------------------------*/
if (swI == 1) {
fieldIndex.enable();
} else {
fieldIndex.disable();
fieldIndex.setValue(false);
}
/*----------------------------------********---------------------------------*/
if (swAI == 1) {
fieldInc.enable();
} else {