resque-sliders 0.0.5 → 0.0.6
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.
@@ -18,7 +18,7 @@ $(document).ready(function() {
|
|
18
18
|
};
|
19
19
|
// Click function for all icons
|
20
20
|
$(".ui-icon").click(function() {
|
21
|
-
var host_sig = $(this).attr("id").split('
|
21
|
+
var host_sig = $(this).attr("id").split(':');
|
22
22
|
var host = host_sig[0];
|
23
23
|
switch(host_sig[1])
|
24
24
|
{
|
@@ -37,16 +37,16 @@ $(document).ready(function() {
|
|
37
37
|
$.post('/sliders/' + host, signal, function(data) {
|
38
38
|
switch(data.signal) {
|
39
39
|
case 'reload':
|
40
|
-
span.removeClass('ui-icon-refresh').addClass('ui-icon-alert').attr('id', [host, 'ALERT'].join('
|
40
|
+
span.removeClass('ui-icon-refresh').addClass('ui-icon-alert').attr('id', [host, 'ALERT'].join(':'));
|
41
41
|
break;
|
42
42
|
case 'pause':
|
43
|
-
span.removeClass('ui-icon-pause').addClass('ui-icon-play').attr('id', [host, 'PLAY'].join('
|
43
|
+
span.removeClass('ui-icon-pause').addClass('ui-icon-play').attr('id', [host, 'PLAY'].join(':'));
|
44
44
|
break;
|
45
45
|
case 'play':
|
46
|
-
span.removeClass('ui-icon-play').addClass('ui-icon-pause').attr('id', [host, 'PAUSE'].join('
|
46
|
+
span.removeClass('ui-icon-play').addClass('ui-icon-pause').attr('id', [host, 'PAUSE'].join(':'));
|
47
47
|
break;
|
48
48
|
case 'stop':
|
49
|
-
$('#'+
|
49
|
+
$('#'+host+'\\:PAUSE').removeClass('ui-icon-pause').addClass('ui-icon-play').attr('id', [host, 'PLAY'].join(':'));
|
50
50
|
break;
|
51
51
|
}
|
52
52
|
}, "json");
|
@@ -73,7 +73,7 @@ module Resque
|
|
73
73
|
else
|
74
74
|
%w(pause stop refresh)
|
75
75
|
end.each do |i|
|
76
|
-
id = "#{host}
|
76
|
+
id = "#{host}:#{i.upcase}"
|
77
77
|
klass = "#{icon_base} ui-icon-#{i}"
|
78
78
|
klass += ' corner' unless list
|
79
79
|
html_out << "<span id=\"#{id}\" class=\"#{klass}\"></span>"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque-sliders
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Kevin Mullin
|