PM-2750
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:
@@ -120,19 +120,6 @@ Ext.onReady(function(){
|
|||||||
handler: GridByDefault
|
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({
|
editForm = new Ext.FormPanel({
|
||||||
url: 'processCategory_Ajax?action=updateCategory',
|
url: 'processCategory_Ajax?action=updateCategory',
|
||||||
frame: true,
|
frame: true,
|
||||||
@@ -297,6 +284,18 @@ DoNothing = function(){};
|
|||||||
|
|
||||||
//Open New Category Form
|
//Open New Category Form
|
||||||
NewCategoryWindow = function(){
|
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().reset();
|
||||||
newForm.getForm().items.items[0].focus('',500);
|
newForm.getForm().items.items[0].focus('',500);
|
||||||
w = new Ext.Window({
|
w = new Ext.Window({
|
||||||
|
|||||||
Reference in New Issue
Block a user