Skip to content

Commit

Permalink
Search in dynamically change
Browse files Browse the repository at this point in the history
This allows you to change what you want to search in on the fly.
  • Loading branch information
MarcGodard committed Jan 16, 2015
1 parent c173318 commit b747911
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
build
custom
npm-debug.log
.idea
1 change: 1 addition & 0 deletions src/js/searchbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ app.initSearchbar = function (pageContainer) {
// Change
function searchValue() {
setTimeout(function () {
searchIn = searchbar.attr('data-search-in');
var value = input.val().trim();
if (value.length === 0) {
searchbar.removeClass('searchbar-not-empty');
Expand Down

0 comments on commit b747911

Please sign in to comment.