Version 21.67.4: Dec 07, 2021 Fixed bug in CSS for photos. Reported by Cristina Sánchez Justicia.

This commit is contained in:
acanas 2021-12-08 11:25:40 +01:00
parent fd71489d1c
commit 52b67d237a
4 changed files with 30 additions and 28 deletions

View File

@ -99,13 +99,9 @@ function writeLocalDateHMSFromUTC (id,TimeUTC,DateFormat,Separator,Language,
var todayDay = today.getDate ();
var d = new Date();
var WriteDate;
var Yea;
var Mon;
var Day;
var Yea,Mon,Day;
var DayOfWeek;
var Hou;
var Min;
var Sec;
var Hou,Min,Sec;
var StrDat;
var StrMon;
var StrDay;
@ -121,13 +117,14 @@ function writeLocalDateHMSFromUTC (id,TimeUTC,DateFormat,Separator,Language,
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
else if (typeof writeLocalDateHMSFromUTC.lastd == 'undefined')
// lastd: 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())
Day != writeLocalDateHMSFromUTC.lastd.getDate ());
writeLocalDateHMSFromUTC.lastd = d; // Update last date for the next call
@ -147,10 +144,14 @@ function writeLocalDateHMSFromUTC (id,TimeUTC,DateFormat,Separator,Language,
StrDat = Yea.toString () + '-' + StrMon + '-' + StrDay;
break;
case 1: // Dat_FORMAT_DD_MONTH_YYYY
StrDat = Day.toString() + ' ' + MonthsShort[Mon - 1] + ' ' + Yea.toString();
StrDat = Day.toString () + ' ' +
MonthsShort[Mon - 1] + ' ' +
Yea.toString ();
break;
case 2: // Dat_FORMAT_MONTH_DD_YYYY
StrDat = MonthsShort[Mon - 1] + ' ' + Day.toString() + ', ' + Yea.toString();
StrDat = MonthsShort[Mon - 1] + ' ' +
Day.toString() + ', ' +
Yea.toString ();
break;
default:
break;
@ -1243,7 +1244,7 @@ function mediaClickOnActivateUpload (id) {
var url = document.getElementById (id + '_url');
var tit = document.getElementById (id + '_tit');
// Enable embed, disable others
// Enable upload, disable others
par_upl.disabled = false; // Enable upload
par_you.disabled = true; // Disable youtube
par_emb.disabled = true; // Disable embed

View File

@ -602,10 +602,11 @@ TODO: FIX BUG, URGENT! En las fechas como par
TODO: En las encuestas, que los estudiantes no puedan ver los resultados hasta que no finalice el plazo.
*/
#define Log_PLATFORM_VERSION "SWAD 21.67.3 (2021-12-04)"
#define CSS_FILE "swad21.67.css"
#define JS_FILE "swad21.67.js"
#define Log_PLATFORM_VERSION "SWAD 21.67.4 (2021-12-07)"
#define CSS_FILE "swad21.67.4.css"
#define JS_FILE "swad21.67.4.js"
/*
Version 21.67.4: Dec 07, 2021 Fixed bug in CSS for photos. Reported by Cristina Sánchez Justicia. (320339 lines)
Version 21.67.3: Dec 04, 2021 Help about user photo shapes. (320337 lines)
Version 21.67.2: Dec 04, 2021 Renamed exam announcements to calls for exams in help wiki. (320316 lines)
Version 21.67.1: Dec 04, 2021 Renamed CENTRE to CENTER in help wiki. (320316 lines)

View File

@ -1303,7 +1303,7 @@ static void Prf_ShowUsrInRanking (struct UsrData *UsrDat,unsigned Rank,bool ItsM
{
[Pho_SHAPE_CIRCLE ] = "PHOTOC30x40",
[Pho_SHAPE_ELLIPSE ] = "PHOTOE30x40",
[Pho_SHAPE_OVAL ] = "PHOTOO30x48",
[Pho_SHAPE_OVAL ] = "PHOTOO30x40",
[Pho_SHAPE_RECTANGLE] = "PHOTOR30x40",
};
bool Visible = Pri_ShowingIsAllowed (UsrDat->BaPrfVisibility,UsrDat);