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:
@@ -196,9 +196,39 @@ Ext.onReady(function(){
|
|||||||
});
|
});
|
||||||
|
|
||||||
//row editor for table columns grid
|
//row editor for table columns grid
|
||||||
|
var flagShowMessageError = 1;
|
||||||
|
|
||||||
if (!isReport) {
|
if (!isReport) {
|
||||||
editor = new Ext.ux.grid.RowEditor({
|
editor = new Ext.ux.grid.RowEditor({
|
||||||
saveText : _("ID_UPDATE"),
|
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 : {
|
listeners : {
|
||||||
afteredit : {
|
afteredit : {
|
||||||
fn:function(rowEditor, obj, data, rowIndex ){
|
fn:function(rowEditor, obj, data, rowIndex ){
|
||||||
@@ -206,6 +236,10 @@ Ext.onReady(function(){
|
|||||||
//store.reload(); // only if it is an insert
|
//store.reload(); // only if it is an insert
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
canceledit: function (grid, obj)
|
||||||
|
{
|
||||||
|
flagShowMessageError = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -242,6 +242,8 @@ Ext.onReady(function(){
|
|||||||
var sizeEdit = Ext.getCmp("sizeEdit");
|
var sizeEdit = Ext.getCmp("sizeEdit");
|
||||||
|
|
||||||
editorFieldsEnableDisable(selCombo, fieldNull, fieldPrimaryKey, fieldInc, sizeEdit);
|
editorFieldsEnableDisable(selCombo, fieldNull, fieldPrimaryKey, fieldInc, sizeEdit);
|
||||||
|
|
||||||
|
flagShowMessageError = 1;
|
||||||
}
|
}
|
||||||
}//select
|
}//select
|
||||||
}
|
}
|
||||||
@@ -339,13 +341,45 @@ Ext.onReady(function(){
|
|||||||
]
|
]
|
||||||
});
|
});
|
||||||
//row editor for table columns grid
|
//row editor for table columns grid
|
||||||
|
var flagShowMessageError = 1;
|
||||||
|
|
||||||
editor = new Ext.ux.grid.RowEditor({
|
editor = new Ext.ux.grid.RowEditor({
|
||||||
saveText: _("ID_UPDATE"),
|
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: {
|
listeners: {
|
||||||
canceledit: function(grid,obj){
|
canceledit: function(grid,obj){
|
||||||
if ( grid.record.data.field_label == '' && grid.record.data.field_name == '') {
|
if ( grid.record.data.field_label == '' && grid.record.data.field_name == '') {
|
||||||
store.remove(grid.record);
|
store.remove(grid.record);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
flagShowMessageError = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user