sinatra-hexacta 1.6.2 → 1.6.3

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sinatra/public/js/app.js +3 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 426f83f4059ea172556ab6f353a970b55ce582fcdc7ed193aaf53f0beb3c91c4
4
- data.tar.gz: 425d0637eb8ca6038df97f4cd5bf72e02c2308f21789429d18572d9f8006d34b
3
+ metadata.gz: 1d706c95a77c81c7a7628ee52313a72c8f1cb6e66c3ca0212e59e8a11b3978eb
4
+ data.tar.gz: 79fa082bb9676a6ced1e03116e699b7533ce54e4a7885c399092e2da7bea7807
5
5
  SHA512:
6
- metadata.gz: 3e9518882b42c117cfd46163a91b7e45a74ff88590d776f00a7e09df7890c56810798b5c1a5216d5ae4d7c5d66a0ea4f3e560e511ecae6d17136fa104cc5193f
7
- data.tar.gz: 8c55127e4507fee024d7c0ce178d91021d1087e00e5826aaab74aa065b99599f67bd3dbcac0bb1e818c5adcc9a14ff8597811bd9afe14bfcd4bd9c59a07832b9
6
+ metadata.gz: 440b4b2efbbde161c1f2858cbcf726af44c1af507eed42f97ca9796a328a3f1e721abe9b20355fbb59369e92a4d7fd4e561f7a32e7ed12b748db38ab4623ab15
7
+ data.tar.gz: a8ac196c8d7cc02acc7f9fd143cbec972b0d4986f8dd7622f0c448d2696492886a3de51514d7634c603875f51bd8015f41867c683c4e9c9100432c0314e7bf99
@@ -46,15 +46,16 @@ function update_html_elements() {
46
46
  location.reload();
47
47
  }, 1000)
48
48
  },
49
- error: function(data) {
49
+ error: function(error) {
50
50
  $('#loading-modal').modal('hide');
51
51
  $('#loading-modal').remove();
52
- $('body').append('<div aria-labelledby="error" class="modal bounceIn animated" id="error-modal" role="dialog" tabindex="-1"><div class="modal-dialog modal-sm" style="width:150px !Important;"><div class="modal-content"><div class="modal-body p-20 text-center"><i class="zmdi zmdi-hc-3x zmdi-alert-polygon c-red"></i></div><div class="modal-footer" style="text-align: center !Important;"><div class="btn btn-link waves-effect c-gray">Oops...</div></div></div></div></div>');
52
+ $('body').append('<div aria-labelledby="error" class="modal bounceIn animated" id="error-modal" role="dialog" tabindex="-1"><div class="modal-dialog modal-sm" style="min-width:150px !Important;"><div class="modal-content"><div class="modal-body p-20 text-center"><i class="zmdi zmdi-hc-3x zmdi-alert-polygon c-red"></i></div><div class="modal-footer" style="text-align: center !Important;"><div class="f-900 c-gray">' + error.responseText + '</div></div></div></div></div>');
53
53
  $('#error-modal').modal('show');
54
54
  }
55
55
  });
56
56
  });
57
57
 
58
+
58
59
  // Fix modal inside other components
59
60
  $('.modal').appendTo("body");
60
61
 
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.6.2
4
+ version: 1.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marco Zanger