Fix the 2 observations made by the QA team regarding the use of the suggest user component, also adds the [x] clean button

This commit is contained in:
Gustavo Cruz
2015-02-20 10:27:44 -04:00
parent f236137634
commit 5110afcd3e
2 changed files with 13 additions and 3 deletions

2
.gitignore vendored
View File

@@ -1,4 +1,4 @@
bproject nbproject/*
workflow/engine/config/paths_installed.php workflow/engine/config/paths_installed.php
gulliver/thirdparty/html2ps_pdf/cache gulliver/thirdparty/html2ps_pdf/cache
workflow/engine/content/languages/translations.environments workflow/engine/content/languages/translations.environments

View File

@@ -1170,7 +1170,7 @@ Ext.onReady ( function() {
store: userStore, store: userStore,
valueField : 'USR_UID', valueField : 'USR_UID',
displayField:'USR_FULLNAME', displayField:'USR_FULLNAME',
typeAhead: true, typeAhead: false,
triggerAction: 'all', triggerAction: 'all',
emptyText : _('ID_ALL_USERS'), emptyText : _('ID_ALL_USERS'),
selectOnFocus : true, selectOnFocus : true,
@@ -1178,7 +1178,7 @@ Ext.onReady ( function() {
width: 180, width: 180,
allowBlank : true, allowBlank : true,
autocomplete: true, autocomplete: true,
typeAhead: true, minChars: 1,
hideTrigger:true, hideTrigger:true,
listeners:{ listeners:{
scope: this, scope: this,
@@ -1234,6 +1234,15 @@ Ext.onReady ( function() {
} }
} }
var resetSuggestButton = {
text:'X',
ctCls:"pm_search_x_button_des",
handler: function(){
suggestUser.setValue('');
doSearch();
}
}
textJump = { textJump = {
xtype: 'numberfield', xtype: 'numberfield',
id : 'textJump', id : 'textJump',
@@ -1866,6 +1875,7 @@ Ext.onReady ( function() {
_("ID_USER"), _("ID_USER"),
//comboUser, //comboUser,
suggestUser, suggestUser,
resetSuggestButton,
'   ' '   '
//'-', //'-',
//textSearch, //textSearch,