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.
- checksums.yaml +4 -4
- data/lib/sinatra/public/js/finder.js +10 -12
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e93327f1a9af39595f3d181a38731f5426574cd7d9d3b78c5862a4e42179fff2
|
4
|
+
data.tar.gz: 5689c062d590de61782ab4deb1932802a64ec70e6343f2d6b41eafef5cc8915f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
});
|