Skip to content

Commit

Permalink
Release 2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nitriques committed Aug 15, 2017
1 parent 506b208 commit cf5d29e
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 10 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ follows:

----- begin license block -----

Copyright 2013-2016 Deux Huit Huit
Copyright 2013-2017 Deux Huit Huit

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "jquery.quicksearch",
"title": "jQuery-QuickSearch",
"description": "A jQuery plugin for searching through tables, lists, etc quickly",
"version": "2.3.2",
"version": "2.4.0",
"main": "dist/jquery.quicksearch.min.js",
"homepage": "",
"author": [
Expand Down
18 changes: 14 additions & 4 deletions dist/jquery.quicksearch.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! jQuery-QuickSearch - v2.3.2 - 2017-03-21
/*! jQuery-QuickSearch - v2.4.0 - 2017-08-15
* https://deuxhuithuit.github.io/quicksearch/
* Copyright (c) 2013 Deux Huit Huit, Rik Lomas.
* Copyright (c) 2017 Deux Huit Huit (https://deuxhuithuit.com/);
Expand All @@ -15,6 +15,7 @@
caseSensitive: false,
noResults: '',
matchedResultsCount: 0,
keyCode : false,
bind: 'keyup search input',
resetBind: 'reset',
removeDiacritics: false,
Expand Down Expand Up @@ -320,10 +321,19 @@
this.loader(false);

return this.each(function () {
$(this).on(options.bind, function () {
val = $(this).val();
self.trigger();
$(this).on(options.bind, function (e) {
if (options.keyCode) {
var keycode = e.keyCode || e.which;
if (keycode === options.keyCode) {
val = $(this).val();
self.trigger();
}
} else {
val = $(this).val();
self.trigger();
}
});

$(this).on(options.resetBind, function () {
val = '';
self.reset();
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.quicksearch.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/jquery.quicksearch.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "jquery.quicksearch",
"title": "jQuery-QuickSearch",
"description": "A jQuery plugin for searching through tables, lists, etc quickly",
"version": "2.3.2",
"version": "2.4.0",
"homepage": "https://deuxhuithuit.github.io/quicksearch/",
"author": {
"name": "Deux Huit Huit",
Expand Down

0 comments on commit cf5d29e

Please sign in to comment.