sinatra-hexacta 1.7.0 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/sinatra/public/js/finder.js +5 -0
- 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: 78f1773a5ead7859db82845bc336a8b7604966c2615040b999d26fe68bdf7890
|
|
4
|
+
data.tar.gz: 2fb2dcc0b7ffc764ae6f0144675211e18b16b4d8845e308546b4b137329cbff0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 394106abc4d70aee85c3a06c661f7516b5ecce020ff92b30de64e16c734d95a7fbdb1a593a7dd0d3992d6f001c05875c0c4af9a65749c761cab57d820cab7739
|
|
7
|
+
data.tar.gz: 52714579e8106c1c0000e52e4a701d4f9b1ee685d2820f800ed5b3646783b01aa2925326639775146998aca047f8a853467d02b92cad711511eda69cef3aefa6
|
|
@@ -3,11 +3,13 @@ var hide_results_timeout = false;
|
|
|
3
3
|
class Finder {
|
|
4
4
|
|
|
5
5
|
static find(query){
|
|
6
|
+
$('body').append('<div id="loading-modal"></div>'); //Compliant with automatic loader
|
|
6
7
|
$.ajax({
|
|
7
8
|
url: "/find",
|
|
8
9
|
type: 'GET',
|
|
9
10
|
data: { query: query }
|
|
10
11
|
}).done(function(result) {
|
|
12
|
+
$('#loading-modal').remove(); //Compliant with automatic loader
|
|
11
13
|
$("#header .results").html(result);
|
|
12
14
|
|
|
13
15
|
$('#header .results *').click(function() {
|
|
@@ -18,11 +20,13 @@ class Finder {
|
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
static do_find(url,query,html){
|
|
23
|
+
$('body').append('<div id="loading-modal"></div>'); //Compliant with automatic loader
|
|
21
24
|
$.ajax({
|
|
22
25
|
url: url,
|
|
23
26
|
type: 'GET',
|
|
24
27
|
data: { query: query }
|
|
25
28
|
}).done(function(result) {
|
|
29
|
+
$('#loading-modal').remove(); //Compliant with automatic loader
|
|
26
30
|
$(html).html(result);
|
|
27
31
|
});
|
|
28
32
|
}
|
|
@@ -82,6 +86,7 @@ $(document).ready(function(){
|
|
|
82
86
|
if (last_query != $.trim($('#header input').val())) {
|
|
83
87
|
last_query = $.trim($('#header input').val());
|
|
84
88
|
if (last_query.length > 2) {
|
|
89
|
+
$('body').append('<div id="loading-modal"></div>'); //Compliant with automatic loader
|
|
85
90
|
Finder.find(last_query);
|
|
86
91
|
}
|
|
87
92
|
}
|