diff --git a/js/swad.js b/js/swad.js index 6956fa86d..08eff34ba 100644 --- a/js/swad.js +++ b/js/swad.js @@ -185,8 +185,8 @@ function readConnUsrsData() { } } - if (delay < 10000) delay = 10000; // Don't refresh faster than 1 time each 10 seconds - setTimeout("refreshConnected()",delay); + if (delay >= 10000) // If refresh slower than 1 time each 10 seconds, do refresh; else abort + setTimeout("refreshConnected()",delay); } } } @@ -204,8 +204,8 @@ function readLastClicksData() { var divLastClicks = document.getElementById('lastclicks'); // Access to last click DIV if (divLastClicks) divLastClicks.innerHTML = htmlLastClicks; // Update global connected DIV - if (delay < 200) delay = 200; // Don't refresh faster than 1 time each 0.2 seconds - setTimeout("refreshLastClicks()",delay); + if (delay > 200) // If refresh slower than 1 time each 0.2 seconds, do refresh; else abort + setTimeout("refreshLastClicks()",delay); } } } diff --git a/swad_changelog.h b/swad_changelog.h index b7ccde9f8..4826fdc14 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -41,11 +41,12 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 14.74.10 (2015/02/10)" +#define Log_PLATFORM_VERSION "SWAD 14.74.11 (2015/02/12)" // Number of lines (includes comments but not blank lines) has been got with the following command: // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h | tail -1 /* + Version 14.74.11: Feb 10, 2015 Changes in swad.js. (178060 lines) Version 14.74.10: Feb 10, 2015 Removed meta tag. (178060 lines) Version 14.74.9: Feb 10, 2015 Description/keywords meta tags and canonical URL added to head. (178060 lines) Version 14.74.8: Feb 10, 2015 Fixed bug in degree logo. (178045 lines) diff --git a/swad_layout.c b/swad_layout.c index f89e1e381..edb1b9c4e 100644 --- a/swad_layout.c +++ b/swad_layout.c @@ -166,6 +166,7 @@ void Lay_WriteStartOfPage (void) "" @@ -84,7 +84,7 @@ int main (int argc, char *argv[]) Cfg_PLATFORM_FULL_NAME, Cfg_PLATFORM_SHORT_NAME); exit (0); -*/ + if (argc > 1) { fprintf (stdout,"Call %s without parameters",argv[0]);