mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-17 05:55:43 +02:00
Version 15.189.1
This commit is contained in:
parent
e8c581129f
commit
ca3ba405cd
|
@ -133,19 +133,21 @@
|
|||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 15.189 (2016-04-08)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 15.189.1 (2016-04-08)"
|
||||
#define CSS_FILE "swad15.188.css"
|
||||
#define JS_FILE "swad15.186.js"
|
||||
|
||||
// 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
|
||||
/*
|
||||
Version 15.189: Apr 08, 2016 Get image atttached to a social post or comment. (198991 lines)
|
||||
Version 15.189.2: Apr 08, 2016 Remove file of the image attached to a social post when the post is removed. (? lines)
|
||||
Version 15.189.1: Apr 08, 2016 Change in layout of form to write a new social post. (198997 lines)
|
||||
Version 15.189: Apr 08, 2016 Get image attached to a social post. (198991 lines)
|
||||
2 changes necessary in database:
|
||||
ALTER TABLE social_posts ADD COLUMN ImageName VARCHAR(43) NOT NULL AFTER Content;
|
||||
ALTER TABLE social_posts ADD COLUMN ImageTitle VARCHAR(255) NOT NULL AFTER ImageName;
|
||||
|
||||
Version 15.188: Apr 08, 2016 Form to attach an image to a social post or comment. Not finished. (198904 lines)
|
||||
Version 15.188: Apr 08, 2016 Form to attach an image to a social post. Not finished. (198904 lines)
|
||||
Version 15.187.2: Apr 08, 2016 Changed CSS of alerts. (198873 lines)
|
||||
Version 15.187.1: Apr 08, 2016 Code optimization in function to change format of string. (198872 lines)
|
||||
Version 15.187: Apr 07, 2016 Fixed bug in forms sent using content type multipart/form-data. (198938 lines)
|
||||
|
|
|
@ -2003,10 +2003,10 @@ static void Soc_PutTextarea (const char *Placeholder,
|
|||
extern const char *Txt_optional;
|
||||
extern const char *Txt_Image_title_attribution;
|
||||
extern const char *Txt_Post;
|
||||
char IdButton[Soc_MAX_LENGTH_ID];
|
||||
char IdDivImgButton[Soc_MAX_LENGTH_ID];
|
||||
|
||||
/***** Set unique id for the button *****/
|
||||
Soc_SetUniqueId (IdButton);
|
||||
/***** Set unique id for the hidden div *****/
|
||||
Soc_SetUniqueId (IdDivImgButton);
|
||||
|
||||
/***** Textarea to write the content *****/
|
||||
fprintf (Gbl.F.Out,"<textarea name=\"Content\" rows=\"1\" maxlength=\"%u\""
|
||||
|
@ -2017,7 +2017,14 @@ static void Soc_PutTextarea (const char *Placeholder,
|
|||
"</textarea>",
|
||||
Soc_MAX_CHARS_IN_POST,
|
||||
Placeholder,ClassTextArea,
|
||||
IdButton,IdButton);
|
||||
IdDivImgButton,IdDivImgButton);
|
||||
|
||||
/***** Start concealable div *****/
|
||||
fprintf (Gbl.F.Out,"<div id=\"%s\" style=\"display:none;\">",
|
||||
IdDivImgButton);
|
||||
|
||||
/***** Help on editor *****/
|
||||
Lay_HelpPlainEditor ();
|
||||
|
||||
/***** Attached image (optional) *****/
|
||||
/* Action to perform on image */
|
||||
|
@ -2042,16 +2049,16 @@ static void Soc_PutTextarea (const char *Placeholder,
|
|||
Txt_Image_title_attribution,Txt_optional,
|
||||
ClassImgTit,Img_MAX_BYTES_TITLE);
|
||||
|
||||
/***** Help on editor and submit button *****/
|
||||
fprintf (Gbl.F.Out,"<div id=\"%s\" style=\"display:none;\">",
|
||||
IdButton);
|
||||
Lay_HelpPlainEditor ();
|
||||
/***** Submit button *****/
|
||||
fprintf (Gbl.F.Out,"<button type=\"submit\""
|
||||
" class=\"BT_SUBMIT_INLINE BT_CREATE\">"
|
||||
"%s"
|
||||
"</button>"
|
||||
"</div>",
|
||||
Txt_Post);
|
||||
|
||||
/***** End hidden div *****/
|
||||
fprintf (Gbl.F.Out,"</div>");
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
Loading…
Reference in New Issue
Block a user