sinatra-hexacta 1.6.4 → 1.7.0

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: 67ece1e93fa8e42e82d62ebd4bcad15aef25ec59713d1b9cbbde415a0be80f5f
4
- data.tar.gz: ed66036b2dc8631b661f8d8e635302b007379e3879d5b29e528bfee2727cfb69
3
+ metadata.gz: eb151fa58d44e75d10580a87954b2e37185e5de3c55fed82a1889a40f0f8e19d
4
+ data.tar.gz: 546c81b9dc5d27f3ba091741edee375eb42619c237ed68c66f6bfbcd7594ca77
5
5
  SHA512:
6
- metadata.gz: 9934eae8636c78275b39eaaea8eb87757512464eddc0454011b6e0047e678bfeb3fd48a9fb04435c9b4d03689ae44ff971fa7267917f89212fe1dea908bfd3b6
7
- data.tar.gz: 705a7593c2f566dd4b2318c5188add2b753aa47a7e19fff8ea5e979556136cb4940e6d83e08ab2bcfcf264ad5123bcc080ea42be9875e8a12a027b60a6c2c92b
6
+ metadata.gz: d3eb3ee99bcf704e5db18b3a78d125c01ab21a028b59088459838b435460318218af7b97ee1ad98345107f25f0637cf6c7a013a0e652a667953fefa5cea3eb52
7
+ data.tar.gz: d13ae82dae1f5ab6afcdcdf2196bed052550b33edc07ef30ddeef6ae7f91a36a8bcb1e36889b5ae617e0ce9f48e43f1f90d38c954697d2b50a143c628e707eeb
@@ -30,16 +30,16 @@ function update_html_elements() {
30
30
  var datastring = $(this).serialize();
31
31
  var url = $(this).attr('action');
32
32
  $(this).closest('.modal').modal('hide');
33
- $('body').append('<div aria-labelledby="loading" class="modal bounceIn animated" id="loading-modal" role="dialog" tabindex="-1" data-backdrop="static" data-keyboard="false"><div class="modal-dialog modal-sm" style="width:150px !Important;"><div class="modal-content"><div class="modal-body p-20 text-center"><div class="preloader pl-lg"><svg class="pl-circular" viewBox="25 25 50 50"><circle class="plc-path" cx="50" cy="50" r="20"></circle></svg></div></div><div class="modal-footer" style="text-align: center !Important;"><div class="btn btn-link waves-effect c-gray">Espere...</div></div></div></div></div>');
34
- $('#loading-modal').modal('show');
33
+ //$('body').append('<div aria-labelledby="loading" class="modal bounceIn animated" id="loading-modal" role="dialog" tabindex="-1" data-backdrop="static" data-keyboard="false"><div class="modal-dialog modal-sm" style="width:150px !Important;"><div class="modal-content"><div class="modal-body p-20 text-center"><div class="preloader pl-lg"><svg class="pl-circular" viewBox="25 25 50 50"><circle class="plc-path" cx="50" cy="50" r="20"></circle></svg></div></div><div class="modal-footer" style="text-align: center !Important;"><div class="btn btn-link waves-effect c-gray">Espere...</div></div></div></div></div>');
34
+ //$('#loading-modal').modal('show');
35
35
  $.ajax({
36
36
 
37
37
  type: "POST",
38
38
  url: url,
39
39
  data: datastring,
40
40
  success: function(data) {
41
- $('#loading-modal').modal('hide');
42
- $('#loading-modal').remove();
41
+ //$('#loading-modal').modal('hide');
42
+ //$('#loading-modal').remove();
43
43
  $('body').append('<div aria-labelledby="ok" class="modal bounceIn animated" id="ok-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-check-circle c-green"></i></div><div class="modal-footer" style="text-align: center !Important;"><div class="btn btn-link waves-effect c-gray">¡Listo!</div></div></div></div></div>');
44
44
  $('#ok-modal').modal('show');
45
45
  setTimeout(function () {
@@ -47,8 +47,8 @@ function update_html_elements() {
47
47
  }, 1000)
48
48
  },
49
49
  error: function(error) {
50
- $('#loading-modal').modal('hide');
51
- $('#loading-modal').remove();
50
+ //$('#loading-modal').modal('hide');
51
+ //$('#loading-modal').remove();
52
52
  if ($('#error-modal')[0]) {
53
53
  $('#error-modal').remove();
54
54
  }
@@ -552,13 +552,15 @@ if (elementToObserve != null) {
552
552
 
553
553
 
554
554
  function start_load() {
555
- if (!$("#loader")[0]) {
556
- $("html").append('<div id="loader" style="position: fixed;z-index: 100000000;padding:5px;top: 0;"><div class="preloader pl-lg pls-white" style="left: 10px; top: 5px;"><svg class="pl-circular" viewBox="25 25 50 50"><circle class="plc-path" cx="50" cy="50" r="20"></circle></svg></div></div>');
555
+ if (!$("#loading-modal")[0]) {
556
+ $('body').append('<div aria-labelledby="loading" class="modal bounceIn animated" id="loading-modal" role="dialog" tabindex="-1" data-backdrop="static" data-keyboard="false"><div class="modal-dialog modal-sm" style="width:150px !Important;"><div class="modal-content"><div class="modal-body p-20 text-center"><div class="preloader pl-lg"><svg class="pl-circular" viewBox="25 25 50 50"><circle class="plc-path" cx="50" cy="50" r="20"></circle></svg></div></div><div class="modal-footer" style="text-align: center !Important;"><div class="btn btn-link waves-effect c-gray">Espere...</div></div></div></div></div>');
557
+ $('#loading-modal').modal('show');
557
558
  }
558
559
  }
559
560
 
560
561
  function stop_load() {
561
- $("#loader").remove();
562
+ $('#loading-modal').modal('hide');
563
+ $('#loading-modal').remove();
562
564
  }
563
565
 
564
566
 
@@ -1,15 +1,16 @@
1
1
  class View {
2
2
 
3
- static get(url,params,destination){
4
- $(destination).html('<div class="text-center" style="padding:100px;"><div class="preloader pls-teal bgm-none"><svg class="pl-circular" viewBox="25 25 50 50"><circle class="plc-path" cx="50" cy="50" r="20"></circle></svg></div><h5>Cargando...</h5></div>');
3
+ static get(url,data,destination){
5
4
  $.ajax({
6
5
  url: url,
7
6
  type: 'GET',
8
- data: params
7
+ data: data,
9
8
  }).done(function(result) {
10
9
  $(destination).html(result);
10
+ $('.modal').appendTo("body");
11
11
  }).error(function(result) {
12
12
  $(destination).html('<div class="lv-item p-20 bgm-red m-b-5 animated fadeIn"><div class="media"><div class="pull-left"><i class="zmdi zmdi-hc-3x zmdi-alert-octagon c-white"></i></div><div class="media-body"><div class="lv-title c-white">Algo salió mal</div><small class="lv-small c-white">Los administradores acaban de ser informados de este error, ni bien tengan una solución se te notificará. Disculpá las molestias.</small></div></div></div>');
13
13
  });
14
14
  }
15
- }
15
+ }
16
+
@@ -8,6 +8,7 @@ script src="/sinatra-hexacta/vendors/chartist/chartist-plugin-legend.js"
8
8
  script src="/sinatra-hexacta/js/app.js?ver=#{settings.version}" type='text/javascript'
9
9
  script src="/sinatra-hexacta/js/finder.js?ver=#{settings.version}" type='text/javascript'
10
10
  script src="/sinatra-hexacta/js/process.js?ver=#{settings.version}" type='text/javascript'
11
+ script src="/sinatra-hexacta/js/view.js?ver=#{settings.version}" type='text/javascript'
11
12
 
12
13
  javascript:
13
14
  const storeScroll = () => {
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.4
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marco Zanger