tailog 0.4.2 → 0.4.3

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
  SHA1:
3
- metadata.gz: e77ca56b4f07a340220ad3599b270ce046e85108
4
- data.tar.gz: 47ac46eab7831003067cb6eee2b2762fbf5be672
3
+ metadata.gz: dc12587aad1dba86f4997cc7c3ac4c9c17f393cb
4
+ data.tar.gz: c9575f2eb1ca8fce3c6dde8fb8284dfe13f7e014
5
5
  SHA512:
6
- metadata.gz: 5f2e30b4bae6ac9f12a7800098f036f7733b318137de1e2eb6f71e8d2efd0cd661993bce100c0813e1728084291965921183b213830d37e1c4ac5ae7c44a6b91
7
- data.tar.gz: ef9cb4ee320f6ae91401d0b07e66edf69f6760b25f1eab9403ced399d1ef6647cafe37f4e7cd80e120c07fe680ff241b06f3104fb563bbaefac308f075147ee5
6
+ metadata.gz: bf0b391f88308902fdcc2e16af53cede1e795fda60cc57dccecececf272f178a766c02f8d772f0ce127b77d1d8281aa22de0e0c41d7e51b193e92a6d1be75b92
7
+ data.tar.gz: 6147a258022436867d15d1bcba191ae853306865bf8b013a082dcef72070c19c383aeffe8cd66963c53a417d2ad6f9b63ab4787a403ac000568e0d55b22f4dfd
@@ -27,7 +27,8 @@ p {
27
27
 
28
28
  .highlight-list span {
29
29
  cursor: pointer;
30
- margin-right: 5px;
30
+ display: inline-block;
31
+ margin: 0 5px 5px 0;
31
32
  font-size: 12px;
32
33
  }
33
34
 
@@ -16,15 +16,27 @@
16
16
  <script type="text/javascript">
17
17
  var $content = $("#content");
18
18
 
19
- $('#script').ajaxForm(function(json) {
20
- try {
21
- var data = JSON.parse(json);
19
+ $('#script').ajaxForm({
20
+ beforeSend: function() {
22
21
  $content
23
- .html('<hr>')
24
- .append('<span class="text-info">' + data.server_hostname + '</span>')
25
- .append(ansi_up.ansi_to_html(data.content));
26
- } catch (error) {
27
- console.log(error)
22
+ .html('<hr/>')
23
+ .append('<span class="text-info">Loading...</span>')
24
+ },
25
+ error: function() {
26
+ $content
27
+ .html('<hr/>')
28
+ .append('<span class="text-danger">Oops! Something went wrong, please try again later!</span>')
29
+ },
30
+ success: function(json) {
31
+ try {
32
+ var data = JSON.parse(json);
33
+ $content
34
+ .html('<hr/>')
35
+ .append('<span class="text-info">' + data.server_hostname + '</span>')
36
+ .append(ansi_up.ansi_to_html(data.content));
37
+ } catch (error) {
38
+ console.log(error)
39
+ }
28
40
  }
29
41
  });
30
42
  </script>
@@ -1,3 +1,3 @@
1
1
  module Tailog
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tailog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - bbtfr