From 6e7eaefb0df94cd492eb5dcc2f6daf2219d7552a Mon Sep 17 00:00:00 2001 From: David Thompson Date: Thu, 7 Aug 2014 08:09:28 -0400 Subject: js: Add form-control class to search input. * js/guix-web.js (guix.view): Add it. --- js/guix-web.js | 21 +++++++++------------ 1 file 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", [ -- cgit v1.2.3