Commit d687de56 authored by Mathieu Giraud's avatar Mathieu Giraud

js/main.js, index.html: bikeshed message and timings and placement

parent 0022744e
Pipeline #68624 failed with stages
in 44 minutes and 23 seconds
...@@ -304,7 +304,7 @@ ...@@ -304,7 +304,7 @@
<div style="float: right; margin: 5px;" id='live-ajax'> <div style="float: right; margin: 5px;" id='live-ajax'>
<div style="float: right; margin: 5px;" id='live-ajax-icon'> <div style="float: right; margin: 5px;" id='live-ajax-icon'>
</div> </div>
<div style="float: right; margin: 5px;" id='live-ajax-msg'> <div style="float: right; margin: 3px;" id='live-ajax-msg'>
</div> </div>
</div> </div>
......
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
NOTIFICATION_PERIOD = 300000 // Time interval to check for notifications periodically (ms) NOTIFICATION_PERIOD = 300000 // Time interval to check for notifications periodically (ms)
AJAX_TIMEOUT_START = 600 AJAX_TIMEOUT_START = 10
AJAX_TIMEOUT_LONG = 2600 AJAX_TIMEOUT_LONG = 600
AJAX_TIMEOUT_MSG = 2600 AJAX_TIMEOUT_MSG = 8000
/* Console (optional) /* Console (optional)
...@@ -163,7 +163,6 @@ $(document).ajaxStart(function () { ...@@ -163,7 +163,6 @@ $(document).ajaxStart(function () {
//show ajax indicator //show ajax indicator
setTimeout(function(){ setTimeout(function(){
if (ajaxOn) { if (ajaxOn) {
console.log( "start timeout ..." )
setTimeout(function(){ setTimeout(function(){
if (ajaxOn) { if (ajaxOn) {
...@@ -172,7 +171,7 @@ $(document).ajaxStart(function () { ...@@ -172,7 +171,7 @@ $(document).ajaxStart(function () {
setTimeout(function(){ setTimeout(function(){
if (ajaxOn) { if (ajaxOn) {
db.ajax_indicator_msg("un message de test") db.ajax_indicator_msg("still trying...")
} }
}, AJAX_TIMEOUT_MSG); }, AJAX_TIMEOUT_MSG);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment