sinatra-hexacta 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sinatra/public/js/finder.js +10 -12
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac08e6f3611186e3358b6d589bf917b392355b63cf6a83de7045e15ebeb87bff
4
- data.tar.gz: e716ed84725768f317c4f7cca68948a519bbd486c39b4e4d98e9ce73bf23bafe
3
+ metadata.gz: e93327f1a9af39595f3d181a38731f5426574cd7d9d3b78c5862a4e42179fff2
4
+ data.tar.gz: 5689c062d590de61782ab4deb1932802a64ec70e6343f2d6b41eafef5cc8915f
5
5
  SHA512:
6
- metadata.gz: 4bfa56f2d305905bfb72d4686fc82e98bba43a03e575b11c214068d690255c86390d7f0576195b93c1d54576a0e6cd5333d5ce363eb2256351a93a1715f77cbb
7
- data.tar.gz: acd090509d47ee8ac5a00ad1e5b9583ac9b24e677a1c27858a786954e917530d857f94aa49818539f68f4f727fca7d4ac4cb1f009ad38867a9d200f53cf92944
6
+ metadata.gz: 9cda35449a8c44fd63017fc8280be87e6eda0f4dfc46c52acb85cefccf1093901441654e01297e056fa5f35d0bee638e67f323639dd86f421dab50c2daf8a260
7
+ data.tar.gz: 60109fb96322cf42c721fc4bec2d391d9499cb4ba593e8319c2e928e67ba57b92f43b6a567786a9e3bae991c84c7a35f7ad1d55709c62f68ca4856c706d88a67
@@ -22,18 +22,6 @@ class Finder {
22
22
  }
23
23
 
24
24
  var header_input_timeout = null;
25
-
26
- $('#header input').keyup(function() {
27
- clearTimeout(header_input_timeout);
28
-
29
- if($('#header input').val().length > 2 && $.trim($('#header input').val())) {
30
- header_input_timeout = setTimeout(function() {
31
- $.xhrPool.abortAll();
32
- Finder.find($('#header input').val());
33
- }, 500);
34
- }
35
- });
36
-
37
25
  $.xhrPool = [];
38
26
 
39
27
  $.xhrPool.abortAll = function() {
@@ -72,4 +60,14 @@ $(document).ready(function(){
72
60
  $("#header input").focus();
73
61
  });
74
62
 
63
+ $('#header input').keyup(function() {
64
+ clearTimeout(header_input_timeout);
65
+
66
+ if($('#header input').val().length > 2 && $.trim($('#header input').val())) {
67
+ header_input_timeout = setTimeout(function() {
68
+ $.xhrPool.abortAll();
69
+ Finder.find($('#header input').val());
70
+ }, 500);
71
+ }
72
+ });
75
73
  });
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-hexacta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marco Zanger