site/js/docurium.js in docurium-0.2.0 vs site/js/docurium.js in docurium-0.2.1

- old
+ new

@@ -535,14 +535,17 @@ return url }, search: function(data) { var searchResults = [] - var value = $('#search-field').attr('value') + var value = $('#search-field').val() + if (value.length < 3) { - return false + docurium.showIndexPage(false) + return } + this.searchResults = [] ws.navigate(searchLink(value)) data = docurium.get('data') @@ -632,10 +635,10 @@ docurium.showType(null, tname) }, search: function(version, query) { docurium.setVersion(version) - $('#search-field').attr('value', query) + $('#search-field').val(query) docurium.search() }, changelog: function(version, tname) { docurium.setVersion()