mirror of
https://github.com/acanas/swad-core.git
synced 2024-09-20 00:02:42 +02:00
Version 15.238.1
This commit is contained in:
parent
6d28ae608c
commit
e906a6c136
|
@ -1254,17 +1254,28 @@ function GetIfLeapYear (Year) {
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
function CopyMessageToHiddenFields () {
|
function CopyMessageToHiddenFields () {
|
||||||
|
var Subject = document.getElementById('MsgSubject');
|
||||||
|
var Content = document.getElementById('MsgContent');
|
||||||
var Subjects = document.getElementsByName("HiddenSubject");
|
var Subjects = document.getElementsByName("HiddenSubject");
|
||||||
var Contents = document.getElementsByName("HiddenContent");
|
var Contents = document.getElementsByName("HiddenContent");
|
||||||
var Subject = document.getElementById('MsgSubject').value;
|
|
||||||
var Content = document.getElementById('MsgContent').value;
|
|
||||||
var i;
|
var i;
|
||||||
|
|
||||||
|
if (Subject)
|
||||||
for (i = 0; i < Subjects.length; i++)
|
for (i = 0; i < Subjects.length; i++)
|
||||||
if (Subjects[i].type == "hidden")
|
if (Subjects[i].type == "hidden")
|
||||||
Subjects[i].value = Subject;
|
Subjects[i].value = Subject.value;
|
||||||
|
|
||||||
|
if (Content)
|
||||||
for (i = 0; i < Contents.length; i++)
|
for (i = 0; i < Contents.length; i++)
|
||||||
if (Contents[i].type == "hidden")
|
if (Contents[i].type == "hidden")
|
||||||
Contents[i].value = Content;
|
Contents[i].value = Content.value;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/**************** Animate icon "recycle" when click on a link ****************/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
function AnimateIcon (NumForm) {
|
||||||
|
document.getElementById('update_'+NumForm).style.display='none'; // Icon to be hidden on click
|
||||||
|
document.getElementById('updating_'+NumForm).style.display=''; // Icon to be shown on click
|
||||||
}
|
}
|
|
@ -4699,6 +4699,7 @@ void Act_LinkFormSubmitAnimated (const char *Title,const char *LinkStyle)
|
||||||
if (LinkStyle)
|
if (LinkStyle)
|
||||||
if (LinkStyle[0])
|
if (LinkStyle[0])
|
||||||
fprintf (Gbl.F.Out," class=\"%s\"",LinkStyle);
|
fprintf (Gbl.F.Out," class=\"%s\"",LinkStyle);
|
||||||
|
/*
|
||||||
fprintf (Gbl.F.Out," onclick=\""
|
fprintf (Gbl.F.Out," onclick=\""
|
||||||
"document.getElementById('update_%d').style.display='none';" // Icon to be hidden on click
|
"document.getElementById('update_%d').style.display='none';" // Icon to be hidden on click
|
||||||
"document.getElementById('updating_%d').style.display='';" // Icon to be shown on click
|
"document.getElementById('updating_%d').style.display='';" // Icon to be shown on click
|
||||||
|
@ -4707,6 +4708,13 @@ void Act_LinkFormSubmitAnimated (const char *Title,const char *LinkStyle)
|
||||||
Gbl.Form.Num,
|
Gbl.Form.Num,
|
||||||
Gbl.Form.Num,
|
Gbl.Form.Num,
|
||||||
Gbl.Form.Id);
|
Gbl.Form.Id);
|
||||||
|
*/
|
||||||
|
fprintf (Gbl.F.Out," onclick=\""
|
||||||
|
"AnimateIcon(%d);"
|
||||||
|
"document.getElementById('%s').submit();"
|
||||||
|
"return false;\">",
|
||||||
|
Gbl.Form.Num,
|
||||||
|
Gbl.Form.Id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -133,13 +133,14 @@
|
||||||
/****************************** Public constants *****************************/
|
/****************************** Public constants *****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 15.238 (2016-07-01)"
|
#define Log_PLATFORM_VERSION "SWAD 15.238.1 (2016-07-01)"
|
||||||
#define CSS_FILE "swad15.229.css"
|
#define CSS_FILE "swad15.229.css"
|
||||||
#define JS_FILE "swad15.238.js"
|
#define JS_FILE "swad15.238.1.js"
|
||||||
|
|
||||||
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
// 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 sql/swad*.sql | tail -1
|
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1
|
||||||
/*
|
/*
|
||||||
|
Version 15.238.1: Jul 01, 2015 New javascript function to animate icon. (203292 lines)
|
||||||
Version 15.238: Jul 01, 2015 Hidden fields in in selectors of class photo / list with message subject and content. (203274 lines)
|
Version 15.238: Jul 01, 2015 Hidden fields in in selectors of class photo / list with message subject and content. (203274 lines)
|
||||||
Version 15.237.3: Jul 01, 2015 Fixed bug in messages. (203257 lines)
|
Version 15.237.3: Jul 01, 2015 Fixed bug in messages. (203257 lines)
|
||||||
Version 15.237.2: Jul 01, 2015 Fixed minor problem in textarea for message content. (203261 lines)
|
Version 15.237.2: Jul 01, 2015 Fixed minor problem in textarea for message content. (203261 lines)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user