rbbt-rest 1.2.10 → 1.2.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/share/views/public/js/_ajax_replace.js +7 -2
- data/share/views/public/js/rbbt/actions.js +14 -13
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YWIyOTNiMGRjOGUwMGVmMWNlYjFjNjIwMWJmYTA0YzE2MzdlOWYxNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTc2NDdkMGJiNWUxNGQ3MjkxY2VhMjgzMWY5OGNjZTEwZWEzMzc2Zg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjUwMjY0NTJkYzc1YmQzOTg1ZmY0ZWRkMjRmZDYzMzI5OGZhM2RmMzNlMTli
|
10
|
+
YmQ2OGExNTQ0YjhjMWM0MzA0ZjA0YWVkZjdlMTMwYzY2MzQzZWY2OWZkZTFh
|
11
|
+
M2FkZDI0N2RmNjlmZDc0ZmI1ZWMwNGYwNDRhZmVmZmY4MWI3MmI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZGM0MGE2YmU5YmExZjZkNzhlYTQyODk3MWFiZGQwZWFmMGMyOWVjZTgxMTY0
|
14
|
+
NzAwYTYyNmNkZTY3MWUyNGExNzRhYTJkYmYxNGQxN2IzZWVkNTk3ZDYwMjE1
|
15
|
+
MDA3OTVlMjkwYzAzZDhiNDc2NTM2YzFmYWJlNWRlMjNkYTZhMzE=
|
@@ -1,4 +1,5 @@
|
|
1
|
-
var reload_seconds_for_try = {0: 1, 1: 1, 2: 2, 3: 2, 4: 3, 5: 7, 6: 7, 7: 7, 8: 7, 9: 7, 10: 30, 11: 30, 12: 60, 13: 120, 14: 120, 15: 120, 16: "STOP"}
|
1
|
+
//var reload_seconds_for_try = {0: 1, 1: 1, 2: 2, 3: 2, 4: 3, 5: 7, 6: 7, 7: 7, 8: 7, 9: 7, 10: 30, 11: 30, 12: 60, 13: 120, 14: 120, 15: 120, 16: "STOP"}
|
2
|
+
var reload_seconds_for_try = {0: 1, 1: "STOP"}
|
2
3
|
|
3
4
|
var ajax_processes = []
|
4
5
|
function update_ajax_counter(){
|
@@ -112,7 +113,11 @@ function replace_object(object, href, embedd, complete){
|
|
112
113
|
var reload_seconds = reload_time(object);
|
113
114
|
|
114
115
|
if (reload_seconds == "STOP"){
|
115
|
-
|
116
|
+
var a =$('<a href="#">').html("insist").click(function(){
|
117
|
+
replace_object(object, href, embedd, complete)
|
118
|
+
return false;
|
119
|
+
})
|
120
|
+
object.empty().removeClass("reloading").addClass("error").addClass('TEST').attr('reload-attempts', 0).html("Maximum number of retries reached ").append(a)
|
116
121
|
}else{
|
117
122
|
window.setTimeout(function(){replace_object(object, href, embedd, complete)}, reload_seconds * 1000);
|
118
123
|
}
|
@@ -91,19 +91,20 @@ $.widget("rbbt.action_controller", {
|
|
91
91
|
var action_div = action_controller.next('.action_loader');
|
92
92
|
|
93
93
|
if (jqXHR.status == 202){
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
94
|
+
if (action_div.attr('reload-attempts') != '0'){
|
95
|
+
action_controller.removeClass('active').addClass('loading');
|
96
|
+
action_list_item.removeClass('active').addClass('loading');
|
97
|
+
|
98
|
+
var response = $(jqXHR.responseText)
|
99
|
+
var stat = response.find('span.status').html()
|
100
|
+
var message = response.find('ul.step_messages li:first').html()
|
101
|
+
|
102
|
+
if (undefined === message){
|
103
|
+
action_div.html("<span class='loading'>Loading [" + stat + "] ...</span>");
|
104
|
+
}else{
|
105
|
+
action_div.html("<span class='loading'>Loading [" + stat + ": " + message + "] ...</span>");
|
106
|
+
};
|
107
|
+
}
|
107
108
|
}else{
|
108
109
|
action_controller.removeClass('loading').addClass('active');
|
109
110
|
action_list_item.removeClass('loading').addClass('active');
|