summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2014-08-07 08:09:28 -0400
committerDavid Thompson <dthompson2@worcester.edu>2014-08-07 08:09:28 -0400
commit6e7eaefb0df94cd492eb5dcc2f6daf2219d7552a (patch)
treea21aac67c234f6c54c88aba992c5bfe592cb685d /js
parentb83bdf040812a229471c5cc9c27066a5e4aa7227 (diff)
js: Add form-control class to search input.
* js/guix-web.js (guix.view): Add it.
Diffstat (limited to 'js')
-rw-r--r--js/guix-web.js21
1 files changed, 9 insertions, 12 deletions
diff --git a/js/guix-web.js b/js/guix-web.js
index 62a8779..8cdbd53 100644
--- a/js/guix-web.js
+++ b/js/guix-web.js
@@ -70,18 +70,15 @@ guix.view = function(ctrl) {
"Packages",
m("span.badge", ctrl.packages().length)
]),
- m("div", [
- m("label", "Search"),
- m("input", {
- type: "text",
- placeholder: 'gui.*',
- onchange: m.withAttr("value", function(value) {
- ctrl.searchTerm(value);
- ctrl.doSearch();
- }),
- value: ctrl.searchTerm()
- })
- ]),
+ m("input.form-control", {
+ type: "text",
+ placeholder: "Search",
+ onchange: m.withAttr("value", function(value) {
+ ctrl.searchTerm(value);
+ ctrl.doSearch();
+ }),
+ value: ctrl.searchTerm()
+ }),
m("table.table", [
m("thead", [
m("tr", [