mirror of
https://github.com/acanas/swad-core.git
synced 2024-09-22 00:00:40 +02:00
Version18.89.3
This commit is contained in:
parent
15ae621148
commit
0bfa0df7ab
|
@ -2718,6 +2718,10 @@ a:hover img.CENTRE_PHOTO_SHOW
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************** Media (image/video) uploading ***********************/
|
/*********************** Media (image/video) uploading ***********************/
|
||||||
|
.MED_ICO
|
||||||
|
{
|
||||||
|
margin-bottom:10px;
|
||||||
|
}
|
||||||
.MED_PLAY
|
.MED_PLAY
|
||||||
{
|
{
|
||||||
position:relative;
|
position:relative;
|
|
@ -771,6 +771,14 @@ function AJAXCreateObject () {
|
||||||
/****************************** Media uploader *******************************/
|
/****************************** Media uploader *******************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
function mediaActivateMediaUploader (id) {
|
||||||
|
var icon = document.getElementById (id + '_med_ico');
|
||||||
|
var uploader = document.getElementById (id + '_med_upl');
|
||||||
|
|
||||||
|
icon.style.display = 'none'; // Hide icon
|
||||||
|
uploader.style.display = ''; // Show uploader
|
||||||
|
}
|
||||||
|
|
||||||
function mediaClickOnActivateUpload (id) {
|
function mediaClickOnActivateUpload (id) {
|
||||||
var par_upl = document.getElementById (id + '_par_upl');
|
var par_upl = document.getElementById (id + '_par_upl');
|
||||||
|
|
|
@ -464,10 +464,11 @@ En OpenSWAD:
|
||||||
ps2pdf source.ps destination.pdf
|
ps2pdf source.ps destination.pdf
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 18.89.2 (2019-03-27)"
|
#define Log_PLATFORM_VERSION "SWAD 18.89.3 (2019-03-27)"
|
||||||
#define CSS_FILE "swad18.89.2.css"
|
#define CSS_FILE "swad18.89.3.css"
|
||||||
#define JS_FILE "swad18.88.js"
|
#define JS_FILE "swad18.89.3.js"
|
||||||
/*
|
/*
|
||||||
|
Version 18.89.3: Mar 27, 2019 Changes in multimedia attachment form. (241139 lines)
|
||||||
Version 18.89.2: Mar 27, 2019 Help link when writing a test question.
|
Version 18.89.2: Mar 27, 2019 Help link when writing a test question.
|
||||||
Changes in multimedia attachment form. (241111 lines)
|
Changes in multimedia attachment form. (241111 lines)
|
||||||
Version 18.89.1: Mar 26, 2019 Corrections in help links after recent changes. (241090 lines)
|
Version 18.89.1: Mar 26, 2019 Corrections in help links after recent changes. (241090 lines)
|
||||||
|
|
20
swad_media.c
20
swad_media.c
|
@ -339,6 +339,23 @@ void Med_PutMediaUploader (int NumMediaInForm,const char *ClassInput)
|
||||||
/***** Create unique id for this media uploader *****/
|
/***** Create unique id for this media uploader *****/
|
||||||
Frm_SetUniqueId (Id);
|
Frm_SetUniqueId (Id);
|
||||||
|
|
||||||
|
fprintf (Gbl.F.Out,"<div id=\"%s_med_ico\"" // <id>_med_ico
|
||||||
|
" class=\"MED_ICO\">"
|
||||||
|
"<img src=\"%s/paperclip.svg\""
|
||||||
|
" alt=\"%s\" title=\"%s\""
|
||||||
|
" class=\"ICO_HIGHLIGHT ICOx16\""
|
||||||
|
" onclick=\"mediaActivateMediaUploader('%s');\" />"
|
||||||
|
"</div>", // <id>_med_ico
|
||||||
|
Id,
|
||||||
|
Cfg_URL_ICON_PUBLIC,
|
||||||
|
Txt_Multimedia,Txt_Multimedia,
|
||||||
|
Id);
|
||||||
|
|
||||||
|
/***** Start media uploader *****/
|
||||||
|
fprintf (Gbl.F.Out,"<div id=\"%s_med_upl\"" // container <id>_med_upl
|
||||||
|
" style=\"display:none;\" />",
|
||||||
|
Id);
|
||||||
|
|
||||||
/***** Start box *****/
|
/***** Start box *****/
|
||||||
Box_StartBox (NULL,Txt_Multimedia,NULL,
|
Box_StartBox (NULL,Txt_Multimedia,NULL,
|
||||||
Hlp_Multimedia,Box_NOT_CLOSABLE);
|
Hlp_Multimedia,Box_NOT_CLOSABLE);
|
||||||
|
@ -457,6 +474,9 @@ void Med_PutMediaUploader (int NumMediaInForm,const char *ClassInput)
|
||||||
|
|
||||||
/***** End box *****/
|
/***** End box *****/
|
||||||
Box_EndBox ();
|
Box_EndBox ();
|
||||||
|
|
||||||
|
/***** End media uploader *****/
|
||||||
|
fprintf (Gbl.F.Out,"</div>"); // container <id>_med_upl
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user