sinatra-hexacta 1.7.0 → 1.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb151fa58d44e75d10580a87954b2e37185e5de3c55fed82a1889a40f0f8e19d
4
- data.tar.gz: 546c81b9dc5d27f3ba091741edee375eb42619c237ed68c66f6bfbcd7594ca77
3
+ metadata.gz: 78f1773a5ead7859db82845bc336a8b7604966c2615040b999d26fe68bdf7890
4
+ data.tar.gz: 2fb2dcc0b7ffc764ae6f0144675211e18b16b4d8845e308546b4b137329cbff0
5
5
  SHA512:
6
- metadata.gz: d3eb3ee99bcf704e5db18b3a78d125c01ab21a028b59088459838b435460318218af7b97ee1ad98345107f25f0637cf6c7a013a0e652a667953fefa5cea3eb52
7
- data.tar.gz: d13ae82dae1f5ab6afcdcdf2196bed052550b33edc07ef30ddeef6ae7f91a36a8bcb1e36889b5ae617e0ce9f48e43f1f90d38c954697d2b50a143c628e707eeb
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
  }
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: 1.7.0
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marco Zanger