Merged in mcuiza/processmaker/PM-2750 (pull request #2223)
PM-2750 - Admin>Settings>Process Categories: Al presionar la "X" para cerrar la categoria se bloquea el boton de New o edit
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user