Admin>Settings>Process Categories: Al presionar la "X" para cerrar la categoria se  bloquea el boton de  New o edit

Causa: no se creava el objeto de la ventana.
Solucion: Se forzo la creacion del objeto desda la funcion que se ejecuta en el evento dado desde la opcion "new"
This commit is contained in:
marcelo.cuiza
2015-05-19 11:16:24 -04:00
parent 90375abeae
commit 26145d177b

View File

@@ -120,19 +120,6 @@ Ext.onReady(function(){
handler: GridByDefault
});
newForm = new Ext.FormPanel({
url: 'processCategory_Ajax?action=saveNewCategory',
frame: true,
items:[
{xtype: 'textfield', fieldLabel: _('ID_CATEGORY_NAME'), name: 'category', width: 250, maxLength :100, allowBlank: false}
],
buttons: [
{text: _('ID_SAVE'), handler: SaveNewCategory},
{text: _('ID_CANCEL'), handler: CloseWindow}
]
});
editForm = new Ext.FormPanel({
url: 'processCategory_Ajax?action=updateCategory',
frame: true,
@@ -297,6 +284,18 @@ DoNothing = function(){};
//Open New Category Form
NewCategoryWindow = function(){
newForm = new Ext.FormPanel({
url: 'processCategory_Ajax?action=saveNewCategory',
frame: true,
items: [
{xtype: 'textfield', fieldLabel: _('ID_CATEGORY_NAME'), name: 'category', width: 250, maxLength :100, allowBlank: false}
],
buttons: [
{text: _('ID_SAVE'), handler: SaveNewCategory},
{text: _('ID_CANCEL'), handler: CloseWindow}
]
});
newForm.getForm().reset();
newForm.getForm().items.items[0].focus('',500);
w = new Ext.Window({