You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by hu...@apache.org on 2017/10/23 10:47:34 UTC
[kibble] 01/02: need to reset the text field too!
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble.git
commit 9741ed5e2c128a0eceacc3ccc6416ce47340df31
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Mon Oct 23 12:47:22 2017 +0200
need to reset the text field too!
---
ui/js/coffee/explorer.coffee | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ui/js/coffee/explorer.coffee b/ui/js/coffee/explorer.coffee
index 6abb682..3741377 100644
--- a/ui/js/coffee/explorer.coffee
+++ b/ui/js/coffee/explorer.coffee
@@ -543,9 +543,9 @@ viewexplorer = (json, state) ->
# Quick filter
state.widget.inject(new HTML('br'))
- i = new HTML('input', {type: 'text', value: globArgs.subfilter, onChange: 'subFilterGlob = this.value;', placeholder: 'sub-filter'})
+ i = new HTML('input', {id:'subfilter', type: 'text', value: globArgs.subfilter, onChange: 'subFilterGlob = this.value;', placeholder: 'sub-filter'})
b = new HTML('input', {style: { marginLeft: '10px'}, class: 'btn btn-small btn-success', type: 'button', onClick: 'subFilter();', value: "sub-filter"})
- rb = new HTML('input', {style: { marginLeft: '10px'}, class: 'btn btn-small btn-danger', type: 'button', onClick: 'subFilterGlob=""; subFilter();', value: "reset"})
+ rb = new HTML('input', {style: { marginLeft: '10px'}, class: 'btn btn-small btn-danger', type: 'button', onClick: 'get("subfilter").value=""; subFilterGlob=""; subFilter();', value: "reset"})
state.widget.inject(i)
state.widget.inject(b)
state.widget.inject(rb)
--
To stop receiving notification emails like this one, please contact
"commits@kibble.apache.org" <co...@kibble.apache.org>.