From 0e917c62445dfcf9f76d351dc438802b16d895f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Sat, 12 Jan 2019 10:24:08 +0100 Subject: [PATCH] Version 18.32.1 --- css/swad18.32.css | 4 ++-- js/{swad17.17.1.js => swad18.32.1.js} | 11 +++++++++-- swad_changelog.h | 5 +++-- 3 files changed, 14 insertions(+), 6 deletions(-) rename js/{swad17.17.1.js => swad18.32.1.js} (98%) diff --git a/css/swad18.32.css b/css/swad18.32.css index 03102a727..3ce668f65 100644 --- a/css/swad18.32.css +++ b/css/swad18.32.css @@ -1154,7 +1154,7 @@ a:hover /* Default ==> underlined */ } .CON_USR_WIDE { - width:340px; + width:360px; text-align:left; vertical-align:middle; } @@ -1167,7 +1167,7 @@ a:hover /* Default ==> underlined */ } .CON_NAME_WIDE { - max-width:340px; + max-width:360px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; diff --git a/js/swad17.17.1.js b/js/swad18.32.1.js similarity index 98% rename from js/swad17.17.1.js rename to js/swad18.32.1.js index 66644d3c4..cacd0fe7a 100644 --- a/js/swad17.17.1.js +++ b/js/swad18.32.1.js @@ -44,6 +44,9 @@ var countClockConnected = 0; // Dat_FORMAT_DD_MONTH_YYYY = 1 // Dat_FORMAT_MONTH_DD_YYYY = 2 // separator is HTML code to write between date and time +// StrToday is a string in current language ('today', 'hoy'...) +// WriteDateOnSameDay = false ==> don't write date if it's the same day than the last call +// WriteWeekDay = true ==> write day of the week ('monday', 'tuesday'...) // WriteHMS = 3 least significant bits for hour, minute and second function writeLocalDateHMSFromUTC (id,TimeUTC,DateFormat,Separator,StrToday, @@ -74,15 +77,19 @@ function writeLocalDateHMSFromUTC (id,TimeUTC,DateFormat,Separator,StrToday, Yea = d.getFullYear(); Mon = d.getMonth() + 1; Day = d.getDate(); - + if (WriteDateOnSameDay) WriteDate = true; + // Check to see if the last date has been initialized + else if (typeof writeLocalDateHMSFromUTC.lastd == 'undefined') // Static variable to remember current date for the next call + // Not initialized + WriteDate = true; else WriteDate = (Yea != writeLocalDateHMSFromUTC.lastd.getFullYear() || Mon != writeLocalDateHMSFromUTC.lastd.getMonth() + 1 || Day != writeLocalDateHMSFromUTC.lastd.getDate()) - writeLocalDateHMSFromUTC.lastd = d; // Static variable to remember current date for the next call + writeLocalDateHMSFromUTC.lastd = d; // Update last date for the next call /* Set date */ if (WriteDate) { diff --git a/swad_changelog.h b/swad_changelog.h index 63ccc8f8d..77080c7bc 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -367,10 +367,11 @@ En OpenSWAD: ps2pdf source.ps destination.pdf */ -#define Log_PLATFORM_VERSION "SWAD 18.32 (2019-01-12)" +#define Log_PLATFORM_VERSION "SWAD 18.32.1 (2019-01-12)" #define CSS_FILE "swad18.32.css" -#define JS_FILE "swad17.17.1.js" +#define JS_FILE "swad18.32.1.js" /* + Version 18.32.1: Jan 12, 2019 Fixed bug in JavaScript related to writing dates. (239320 lines) Version 18.32: Jan 12, 2019 Code refactoring related to icons. (239311 lines) Version 18.31.6: Jan 11, 2019 Fixed bug in user administration. (239587 lines) Version 18.31.5: Jan 11, 2019 Fixed bug in link to my courses. (239583 lines)