aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/assets
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-07-04 17:22:36 -0400
committerGitHub <noreply@github.com>2017-07-04 17:22:36 -0400
commita67f99fcf210792da5e028570efbad61407aeab2 (patch)
tree3a2d617e9d9649828f13e581d8491c0371c67223 /app/src/main/assets
parent4cf368be0cd2f179485b05a3d2cd9b7bc236ba8e (diff)
downloadfrost-a67f99fcf210792da5e028570efbad61407aeab2.tar.gz
frost-a67f99fcf210792da5e028570efbad61407aeab2.tar.bz2
frost-a67f99fcf210792da5e028570efbad61407aeab2.zip
Dev (#21) - fix search and file chooser
* Fix up search and add file chooser * Fix repeating file chooser
Diffstat (limited to 'app/src/main/assets')
-rw-r--r--app/src/main/assets/.gitignore3
-rw-r--r--app/src/main/assets/js/search_query.js10
2 files changed, 12 insertions, 1 deletions
diff --git a/app/src/main/assets/.gitignore b/app/src/main/assets/.gitignore
index 62c89355..0d3aee97 100644
--- a/app/src/main/assets/.gitignore
+++ b/app/src/main/assets/.gitignore
@@ -1 +1,2 @@
-.idea/ \ No newline at end of file
+.idea/
+js/search_query.min.js
diff --git a/app/src/main/assets/js/search_query.js b/app/src/main/assets/js/search_query.js
new file mode 100644
index 00000000..806519de
--- /dev/null
+++ b/app/src/main/assets/js/search_query.js
@@ -0,0 +1,10 @@
+var e = document.getElementById('main-search-input');
+if (e) {
+ e.value = '$input';
+ var n = new Event('input', {
+ bubbles: !0,
+ cancelable: !0
+ });
+ e.dispatchEvent(n);
+ e.dispatchEvent(new Event('focus'));
+} else console.log('Input field not found')