##// END OF EJS Templates
repo: when creating repos if we don't get JSON results, stop execution at refresh.
marcink -
r75:110fb2a4 default
parent child Browse files
Show More
@@ -50,19 +50,19 b''
50 if (resp.status == 200) {
50 if (resp.status == 200) {
51 var jsonResponse = resp.responseJSON;
51 var jsonResponse = resp.responseJSON;
52
52
53 if (jsonResponse === undefined){
53 if (jsonResponse === undefined) {
54 setTimeout(function(){
54 setTimeout(function () {
55 // we might have a backend problem, try dashboard again
55 // we might have a backend problem, try dashboard again
56 window.location = "${h.url('summary_home', repo_name = c.repo)}";
56 window.location = "${h.url('summary_home', repo_name = c.repo)}";
57 }, 1000);
57 }, 3000);
58 }
59
60 if (skipCheck || jsonResponse.result === true) {
61 // success, means go to dashboard
62 window.location = "${h.url('summary_home', repo_name = c.repo)}";
63 } else {
58 } else {
64 // Schedule the next request when the current one's complete
59 if (skipCheck || jsonResponse.result === true) {
65 setTimeout(worker, 1000);
60 // success, means go to dashboard
61 window.location = "${h.url('summary_home', repo_name = c.repo)}";
62 } else {
63 // Schedule the next request when the current one's complete
64 setTimeout(worker, 1000);
65 }
66 }
66 }
67 }
67 }
68 else {
68 else {
General Comments 0
You need to be logged in to leave comments. Login now