From 5110afcd3ebb19cd5c335b1e6494b703c8a456a0 Mon Sep 17 00:00:00 2001 From: Gustavo Cruz Date: Fri, 20 Feb 2015 10:27:44 -0400 Subject: [PATCH] Fix the 2 observations made by the QA team regarding the use of the suggest user component, also adds the [x] clean button --- .gitignore | 2 +- workflow/engine/templates/cases/casesList.js | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index b951fad8a..9316009db 100755 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -bproject +nbproject/* workflow/engine/config/paths_installed.php gulliver/thirdparty/html2ps_pdf/cache workflow/engine/content/languages/translations.environments diff --git a/workflow/engine/templates/cases/casesList.js b/workflow/engine/templates/cases/casesList.js index 77c475fc5..82643f2c9 100755 --- a/workflow/engine/templates/cases/casesList.js +++ b/workflow/engine/templates/cases/casesList.js @@ -1170,7 +1170,7 @@ Ext.onReady ( function() { store: userStore, valueField : 'USR_UID', displayField:'USR_FULLNAME', - typeAhead: true, + typeAhead: false, triggerAction: 'all', emptyText : _('ID_ALL_USERS'), selectOnFocus : true, @@ -1178,7 +1178,7 @@ Ext.onReady ( function() { width: 180, allowBlank : true, autocomplete: true, - typeAhead: true, + minChars: 1, hideTrigger:true, listeners:{ scope: this, @@ -1233,6 +1233,15 @@ Ext.onReady ( function() { doSearch(); } } + + var resetSuggestButton = { + text:'X', + ctCls:"pm_search_x_button_des", + handler: function(){ + suggestUser.setValue(''); + doSearch(); + } + } textJump = { xtype: 'numberfield', @@ -1866,6 +1875,7 @@ Ext.onReady ( function() { _("ID_USER"), //comboUser, suggestUser, + resetSuggestButton, '   ' //'-', //textSearch,