Fix to Bug 6316 applied to users, roles, groups, departments and process categories.

This commit is contained in:
Enrique Ponce de Leon
2011-03-01 21:14:17 +00:00
parent 9f709ca530
commit 6de274c900
5 changed files with 13 additions and 0 deletions

View File

@@ -57,9 +57,11 @@ pmosExt.prototype.popWebEntry= function(_5678)
hidden: true,
handler: function(){
webForm.hide();
editForm.getForm().reset();
editForm.getForm().findField('pro_uid').setValue(pro_uid);
editForm.getForm().findField('evn_uid').setValue(evn_uid);
editForm.getForm().findField('dynaform').setValue('');
editForm.getForm().items.items[3].focus('',500);
editForm.show();
newButton.disable();
}

View File

@@ -241,7 +241,10 @@ DoNothing = function(){};
//Call New Department at Root
NewRootDepartment = function(){
newForm.getForm().reset();
newForm.getForm().findField('parent').setValue('');
newForm.getForm().items.items[1].focus('',500);
//newForm.getForm().items.items[1].setValue('');
w = new Ext.Window({
title: _('ID_NEW_DEPARTMENT'),
autoHeight: true,
@@ -257,7 +260,9 @@ NewRootDepartment = function(){
//Call New Sub Department at Parent
NewSubDepartment = function(){
var dep_node = Ext.getCmp('treePanel').getSelectionModel().getSelectedNode();
newForm.getForm().reset();
newForm.getForm().findField('parent').setValue(dep_node.attributes.DEP_UID);
newForm.getForm().items.items[1].focus('',500);
w = new Ext.Window({
title: _('ID_NEW_SUB_DEPARTMENT'),
autoHeight: true,

View File

@@ -332,6 +332,8 @@ DoNothing = function(){};
//Open New Group Form
NewGroupWindow = function(){
newForm.getForm().reset();
newForm.getForm().items.items[0].focus('',500);
w = new Ext.Window({
autoHeight: true,
width: 400,

View File

@@ -298,6 +298,8 @@ DoNothing = function(){};
//Open New Category Form
NewCategoryWindow = function(){
newForm.getForm().reset();
newForm.getForm().items.items[0].focus('',500);
w = new Ext.Window({
title: _('ID_NEW_CATEGORY'),
autoHeight: true,

View File

@@ -354,6 +354,8 @@ DoNothing = function(){};
//Open New Role Form
NewRoleWindow = function(){
newForm.getForm().reset();
newForm.getForm().items.items[0].focus('',500);
w = new Ext.Window({
title: _('ID_CREATE_ROLE_TITLE'),
autoHeight: true,