BUG 13131 "Popup movible innecesario al momento..." SOLVED

- Popup movible innecesario al momento de adicionar una nueva fila para ser llenada en el "Data" de los PM Tables
- Problema:
  En ADMIN>Settings>PMTable al seleccionar de la lista un PM Table y al hacer click en la opcion "Data", al agregar
  una fila y al introducir datos erroneos aparece un mensaje en movimiento dificultado su visibilidad.
- Solucion:
  Se elimino el mensaje en movimiento cambiandolo por otro, donde se muestra el mensaje sin ninguna dificultad.

  Disponible para la version 2.5.2

rFieldsEnableDisable
This commit is contained in:
Luis Fernando Saisa Lopez
2013-10-03 12:46:30 -04:00
parent d28900c018
commit 29b83d8bb3
2 changed files with 68 additions and 0 deletions

View File

@@ -196,9 +196,39 @@ Ext.onReady(function(){
});
//row editor for table columns grid
var flagShowMessageError = 1;
if (!isReport) {
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;
}
}
});

View 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;
}
}
});