Merge branch 'master' of github.com:colosa/processmaker
This commit is contained in:
@@ -196,9 +196,39 @@ Ext.onReady(function(){
|
||||
});
|
||||
|
||||
//row editor for table columns grid
|
||||
var flagShowMessageError = 1;
|
||||
|
||||
if (!isReport) {
|
||||
editor = new Ext.ux.grid.RowEditor({
|
||||
editor = new Ext.ux.grid.RowEditor({
|
||||
saveText : _("ID_UPDATE"),
|
||||
isValid: function ()
|
||||
{
|
||||
var valid = true;
|
||||
this.items.each(function(f) {
|
||||
if(!f.isValid(true)){
|
||||
valid = false;
|
||||
|
||||
if (valid) {
|
||||
flagShowMessageError = 1;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
if (valid) {
|
||||
flagShowMessageError = 1;
|
||||
}
|
||||
|
||||
return valid;
|
||||
},
|
||||
showTooltip: function (msg)
|
||||
{
|
||||
if (flagShowMessageError == 1) {
|
||||
Ext.msgBoxSlider.msgTopCenter("error", _("ID_ERROR"), msg, 3);
|
||||
flagShowMessageError = 0;
|
||||
}
|
||||
},
|
||||
listeners : {
|
||||
afteredit : {
|
||||
fn:function(rowEditor, obj, data, rowIndex ){
|
||||
@@ -206,6 +236,10 @@ Ext.onReady(function(){
|
||||
//store.reload(); // only if it is an insert
|
||||
}
|
||||
}
|
||||
},
|
||||
canceledit: function (grid, obj)
|
||||
{
|
||||
flagShowMessageError = 1;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
36
workflow/engine/templates/pmTables/edit.js
Executable file → Normal file
36
workflow/engine/templates/pmTables/edit.js
Executable file → Normal file
@@ -242,6 +242,8 @@ Ext.onReady(function(){
|
||||
var sizeEdit = Ext.getCmp("sizeEdit");
|
||||
|
||||
editorFieldsEnableDisable(selCombo, fieldNull, fieldPrimaryKey, fieldInc, sizeEdit);
|
||||
|
||||
flagShowMessageError = 1;
|
||||
}
|
||||
}//select
|
||||
}
|
||||
@@ -339,13 +341,45 @@ Ext.onReady(function(){
|
||||
]
|
||||
});
|
||||
//row editor for table columns grid
|
||||
var flagShowMessageError = 1;
|
||||
|
||||
editor = new Ext.ux.grid.RowEditor({
|
||||
saveText: _("ID_UPDATE"),
|
||||
isValid: function ()
|
||||
{
|
||||
var valid = true;
|
||||
this.items.each(function(f) {
|
||||
if(!f.isValid(true)){
|
||||
valid = false;
|
||||
|
||||
if (valid) {
|
||||
flagShowMessageError = 1;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
if (valid) {
|
||||
flagShowMessageError = 1;
|
||||
}
|
||||
|
||||
return valid;
|
||||
},
|
||||
showTooltip: function (msg)
|
||||
{
|
||||
if (flagShowMessageError == 1) {
|
||||
Ext.msgBoxSlider.msgTopCenter("error", _("ID_ERROR"), msg, 3);
|
||||
flagShowMessageError = 0;
|
||||
}
|
||||
},
|
||||
listeners: {
|
||||
canceledit: function(grid,obj){
|
||||
if ( grid.record.data.field_label == '' && grid.record.data.field_name == '') {
|
||||
store.remove(grid.record);
|
||||
}
|
||||
|
||||
flagShowMessageError = 1;
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -716,7 +750,7 @@ Ext.onReady(function(){
|
||||
if (dataNumRows > 0) {
|
||||
var tpl = new Ext.Template(
|
||||
'<div id="fb" style="border: 1px solid #FF0000; background-color:#FFAAAA; display:none; padding:15px; color:#000000; font-size:12px;">'+
|
||||
'<b>Warning: </b> ' + dataNumRows + ' ' + _('ID_PMTABLE_DATA_EXISTS_WARNINIG') + ' <a href="#" id="hideWarning">[ '+_('ID_HIDE')+' ]</a></div>'
|
||||
'<b>Warning: </b> ' + dataNumRows + ' ' + _('ID_PMTABLE_DATA_EXISTS_WARNINIG') + ' <a href="#" id="hideWarning" onclick="return false;">[ '+_('ID_HIDE')+' ]</a></div>'
|
||||
);
|
||||
var newEl = tpl.insertFirst(document.getElementById('assignedGrid'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user