summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--htdocs/static/js/navigation.js2
-rw-r--r--templates/index.html6
2 files changed, 4 insertions, 4 deletions
diff --git a/htdocs/static/js/navigation.js b/htdocs/static/js/navigation.js
index 7f2b74d..a890927 100644
--- a/htdocs/static/js/navigation.js
+++ b/htdocs/static/js/navigation.js
@@ -62,5 +62,5 @@ $(window).keydown(function(e) {
return false;
}
- $('input[type=search]').focus();
+ $('#search').focus();
});
diff --git a/templates/index.html b/templates/index.html
index 88470fc..6451874 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -11,7 +11,7 @@
<div id="hostlist" class="row">
<div class="span12 searchbox">
- <input type="search" class="search span4 pull-right"
+ <input type="search" class="search span4 pull-right" id="search"
placeholder="Search for Hostname or IP" />
</div>
@@ -61,8 +61,8 @@ var options = {
};
var featureList = new List('hostlist', options);
-$('input[type=search]').change(function(){
- featureList.search($('input[type=search]').val());
+$('#search').change(function(){
+ featureList.search($('#search').val());
});
//-->
</script>