Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
w2pext
plugin_dbui
Commits
33578cd9
Commit
33578cd9
authored
Oct 30, 2019
by
LE GAC Renaud
Browse files
Update GridWithFilter to activate the filtering when the ENTER key is pressed.
parent
88e90e5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
static/plugin_dbui/src/panel/GridWithFilter.js
static/plugin_dbui/src/panel/GridWithFilter.js
+19
-1
No files found.
static/plugin_dbui/src/panel/GridWithFilter.js
View file @
33578cd9
...
...
@@ -26,6 +26,11 @@ Ext.define("Dbui.panel.GridWithFilter", {
filter
:
null
,
grid
:
null
,
// private key map
keyMap
:
{
ENTER
:
"
onEnterKey
"
},
// Private properties for internationalization
textLoad
:
"
Loading...
"
,
...
...
@@ -46,6 +51,7 @@ Ext.define("Dbui.panel.GridWithFilter", {
// connect buttons
if
(
me
.
filterOnChange
)
{
me
.
keyMapEnabled
=
false
;
me
.
goButton
.
hide
();
}
else
{
...
...
@@ -76,7 +82,19 @@ Ext.define("Dbui.panel.GridWithFilter", {
me
.
resetButton
.
un
(
"
click
"
,
me
.
filter
.
onReset
,
me
.
filter
);
me
.
callParent
(
arguments
);
}
}
,
// jshint strict: true
/**
* Handler to click on the Go button when the ENTER key is pressed
*
*/
onEnterKey
:
function
()
{
"
use strict
"
;
var
me
=
this
;
me
.
goButton
.
click
();
}
});
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment