sinatra-hexacta 1.6.3 → 1.6.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d706c95a77c81c7a7628ee52313a72c8f1cb6e66c3ca0212e59e8a11b3978eb
4
- data.tar.gz: 79fa082bb9676a6ced1e03116e699b7533ce54e4a7885c399092e2da7bea7807
3
+ metadata.gz: 67ece1e93fa8e42e82d62ebd4bcad15aef25ec59713d1b9cbbde415a0be80f5f
4
+ data.tar.gz: ed66036b2dc8631b661f8d8e635302b007379e3879d5b29e528bfee2727cfb69
5
5
  SHA512:
6
- metadata.gz: 440b4b2efbbde161c1f2858cbcf726af44c1af507eed42f97ca9796a328a3f1e721abe9b20355fbb59369e92a4d7fd4e561f7a32e7ed12b748db38ab4623ab15
7
- data.tar.gz: a8ac196c8d7cc02acc7f9fd143cbec972b0d4986f8dd7622f0c448d2696492886a3de51514d7634c603875f51bd8015f41867c683c4e9c9100432c0314e7bf99
6
+ metadata.gz: 9934eae8636c78275b39eaaea8eb87757512464eddc0454011b6e0047e678bfeb3fd48a9fb04435c9b4d03689ae44ff971fa7267917f89212fe1dea908bfd3b6
7
+ data.tar.gz: 705a7593c2f566dd4b2318c5188add2b753aa47a7e19fff8ea5e979556136cb4940e6d83e08ab2bcfcf264ad5123bcc080ea42be9875e8a12a027b60a6c2c92b
@@ -30,7 +30,7 @@ class Date
30
30
  end
31
31
 
32
32
  def short_display
33
- self.strftime('%d/%m/%Y')
33
+ self.strftime('%-d/%-m/%y')
34
34
  end
35
35
 
36
36
  def next_working_date
@@ -49,6 +49,9 @@ function update_html_elements() {
49
49
  error: function(error) {
50
50
  $('#loading-modal').modal('hide');
51
51
  $('#loading-modal').remove();
52
+ if ($('#error-modal')[0]) {
53
+ $('#error-modal').remove();
54
+ }
52
55
  $('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
56
  $('#error-modal').modal('show');
54
57
  }
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.3
4
+ version: 1.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marco Zanger