From d21d0f88795bda9362ac07c6212587a0b9555534 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Mon, 15 Sep 2014 18:01:22 +0900 Subject: [PATCH] Use bootstrap-select for keyword selection control --- client/application.js | 3 +++ client/bower.json | 3 ++- client/index.html | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/client/application.js b/client/application.js index cb8680a..f3ec9d2 100644 --- a/client/application.js +++ b/client/application.js @@ -86,6 +86,8 @@ }, ready: function() { + $('.selectpicker').selectpicker(); + $.getJSON('/node/keywords', function(keywords) { for (var i = 0, count = keywords.length; i < count; ++i) { $('#keywords').append($('', { @@ -94,6 +96,7 @@ })); } + $('.selectpicker').selectpicker('refresh'); $('#search').prop('disabled', false); $('#search').click(onSearch); }); diff --git a/client/bower.json b/client/bower.json index bf22ea9..fc9efc4 100644 --- a/client/bower.json +++ b/client/bower.json @@ -17,6 +17,7 @@ "closurelibrary": "*", "fabric": "~1.4.8", "handlebars": "~1.3.0", - "underscore": "~1.6.0" + "underscore": "~1.6.0", + "bootstrap-select": "~1.6.2" } } diff --git a/client/index.html b/client/index.html index 2dbabf0..e800378 100644 --- a/client/index.html +++ b/client/index.html @@ -5,6 +5,7 @@ + @@ -21,7 +22,7 @@
- +
@@ -103,6 +104,7 @@ +