From 90f92b6a1f4f6054c32a57351962b6e28b299cf6 Mon Sep 17 00:00:00 2001 From: henry jonathan Date: Thu, 16 Apr 2020 12:09:32 -0400 Subject: [PATCH] PMCORE-740 --- workflow/engine/templates/roles/rolesList.js | 24 +++++++------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/workflow/engine/templates/roles/rolesList.js b/workflow/engine/templates/roles/rolesList.js index 00722432f..6dbec1339 100644 --- a/workflow/engine/templates/roles/rolesList.js +++ b/workflow/engine/templates/roles/rolesList.js @@ -143,21 +143,7 @@ Ext.onReady(function(){ url: 'roles_Ajax?request=saveNewRole', frame: true, items:[ - {xtype: 'textfield', fieldLabel: _('ID_CODE'), name: 'code', width: 250, allowBlank: false, - listeners: { - blur : function(ob) - { - if(this.getValue().length == 0){ - Ext.MessageBox.show({ - title: _('ID_WARNING'), - msg: _('ID_PLEASE_ENTER_REQUIRED_FIELDS'), - buttons: Ext.MessageBox.OK, - animEl: 'mb9', - icon: Ext.MessageBox.WARNING - }); - } - } - }}, + {xtype: 'textfield', fieldLabel: _('ID_CODE'), name: 'code', width: 250, allowBlank: false}, {xtype: 'textfield', fieldLabel: _('ID_NAME'), name: 'name', width: 200, allowBlank: false, listeners: { blur : function(ob) @@ -406,7 +392,13 @@ NewRoleWindow = function(){ id: 'w', modal: true, width: 420, - items: [newForm] + items: [newForm], + listeners: { + beforeclose:function(){ + CloseWindow(); + return false; + } + } }); w.show(); };