tailog 0.5.7 → 0.5.8

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: 76033882e8d86c028027768904d1335c64a3dada
4
- data.tar.gz: 989463205a1c822a3c900899a6a7985408328652
3
+ metadata.gz: e66561a042595f6192f87d5f674292cb7636cc02
4
+ data.tar.gz: 8bd57b44e20444b1127b9358f72c3f547f3ac2e8
5
5
  SHA512:
6
- metadata.gz: e1aa0dbbf913c5aeafef44fbe137846687010b7abb5281aea89774954af2249f47c3a7bf83770e6bcffdcff896ace016d284dc932bac39f2dd786efd8c0df569
7
- data.tar.gz: 0f6ce5b5f1c41c94dd20e742ae4a4250d64279a3cf966ce0b05733ca94c3650ed967e242922c009438b215dd792c5485fd93a6b5f41f46aad09c3992ede87101
6
+ metadata.gz: a37c523ee58c595b1f201ec0ce75ad0d377cc9df36625575eb50cc6fff791184d89822d228c2e6af32c1e430f369750522997f0884a00bd228df347f76a3dbd7
7
+ data.tar.gz: d61c85758b3cd8deb9c09b2b72bd3bf96b17648dc78a8cf8a2d9f007af526924138228156b55e78379d1b9b0b819fdd14436b88b53d9da3a0faf6ce3258f1d4b
@@ -8,7 +8,6 @@
8
8
  <option value="ruby_debug">Ruby (Debug Mode)</option>
9
9
  <option value="bash">Bash</option>
10
10
  </select>
11
- <button id="broadcast-button" type="submit" class="btn btn-danger">Broadcast</button>
12
11
  <button id="submit-button" type="submit" class="btn btn-primary">Submit</button>
13
12
  </div>
14
13
  <div>
@@ -18,24 +17,6 @@
18
17
 
19
18
  <div id="content"></div>
20
19
 
21
- <div class="modal fade" tabindex="-1" role="dialog" id="broadcast-modal">
22
- <div class="modal-dialog" role="document">
23
- <div class="modal-content">
24
- <div class="modal-header">
25
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
26
- <h4 class="modal-title">Modal title</h4>
27
- </div>
28
- <div class="modal-body">
29
- <p>One fine body&hellip;</p>
30
- </div>
31
- <div class="modal-footer">
32
- <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
33
- <button type="button" class="btn btn-primary">Save changes</button>
34
- </div>
35
- </div><!-- /.modal-content -->
36
- </div><!-- /.modal-dialog -->
37
- </div><!-- /.modal -->
38
-
39
20
  <script type="text/javascript" src="javascripts/codemirror.js"></script>
40
21
  <script type="text/javascript" src="javascripts/mode/ruby.js"></script>
41
22
  <script type="text/javascript" src="javascripts/mode/shell.js"></script>
@@ -67,36 +48,27 @@
67
48
 
68
49
  var $content = $("#content");
69
50
 
70
- $("#broadcast-button").click(function(event) {
71
- event.preventDefault();
72
- $("#broadcast-modal").addClass("in");
73
- });
74
-
75
- $("#submit-button").click(function(event) {
76
- event.preventDefault();
77
- $("#script").ajaxSubmit({
78
- beforeSend: function() {
51
+ $("#script").ajaxForm({
52
+ beforeSend: function() {
53
+ $content
54
+ .html("<hr/>")
55
+ .append('<span class="text-info">Loading...</span>')
56
+ },
57
+ error: function() {
58
+ $content
59
+ .html("<hr/>")
60
+ .append('<span class="text-danger">Oops! Something went wrong, please try again later!</span>')
61
+ },
62
+ success: function(json) {
63
+ try {
64
+ var data = JSON.parse(json);
79
65
  $content
80
66
  .html("<hr/>")
81
- .append('<span class="text-info">Loading...</span>')
82
- },
83
- error: function() {
84
- $content
85
- .html("<hr/>")
86
- .append('<span class="text-danger">Oops! Something went wrong, please try again later!</span>')
87
- },
88
- success: function(json) {
89
- try {
90
- var data = JSON.parse(json);
91
- $content
92
- .html("<hr/>")
93
- .append('<span class="text-info">' + data.server_hostname + "</span>")
94
- .append(ansi_up.ansi_to_html(data.content));
95
- } catch (error) {
96
- console.log(error)
97
- }
67
+ .append('<span class="text-info">' + data.server_hostname + "</span>")
68
+ .append(ansi_up.ansi_to_html(data.content));
69
+ } catch (error) {
70
+ console.error(error)
98
71
  }
99
- });
72
+ }
100
73
  });
101
-
102
74
  </script>
@@ -1,3 +1,3 @@
1
1
  module Tailog
2
- VERSION = "0.5.7"
2
+ VERSION = "0.5.8"
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.5.7
4
+ version: 0.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - bbtfr