Version 15.116.1

This commit is contained in:
Antonio Cañas Vargas 2016-01-17 14:46:01 -06:00
parent c836c63318
commit abe455b5f4
4 changed files with 20 additions and 21 deletions

View File

@ -1484,7 +1484,7 @@ a:hover img.CENTRE_PHOTO_SHOW
margin:10px;
text-align:center;
color:#808080;
font-size:8pt;
font-size:9pt;
}
/*********************************** Lists ***********************************/

View File

@ -122,13 +122,14 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 15.116 (2016-01-17)"
#define Log_PLATFORM_VERSION "SWAD 15.116.1 (2016-01-17)"
#define CSS_FILE "swad15.115.css"
#define JS_FILE "swad15.115.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.116.1: Jan 17, 2016 Help when writing social posts or comments. (192877 lines)
Version 15.116: Jan 17, 2016 Optimization in the query to get timeline. (192878 lines)
Version 15.115.2: Jan 17, 2016 Code refactoring in timeline. (192860 lines)
Version 15.115.1: Jan 17, 2016 Code refactoring in timeline. (192857 lines)

View File

@ -1738,13 +1738,13 @@ void Lay_HelpPlainEditor (void)
Lay_HelpTextEditor (Txt_TEXT_plain,
"\\(LaTeX\\)",
"$$LaTeX$$, \\[LaTeX\\]");
"$$LaTeX$$, \\[LaTeX\\]");
}
void Lay_HelpRichEditor (void)
{
Lay_HelpTextEditor ("<a href=\"http://johnmacfarlane.net/pandoc/README.html#pandocs-markdown\""
" target=\"_blank\">Markdown + Pandoc</a>",
" target=\"_blank\">Markdown+Pandoc</a>",
"$LaTeX$",
"$$LaTeX$$");
}
@ -1756,13 +1756,11 @@ static void Lay_HelpTextEditor (const char *Text,const char *InlineMath,const ch
extern const char *Txt_Equation_centered;
fprintf (Gbl.F.Out,"<div class=\"HELP_EDIT\">"
"<code>"
"%s: %s"
"&nbsp;&nbsp;"
"%s: %s"
"&nbsp;&nbsp;"
"%s: %s"
"</code>"
"%s:&nbsp;%s"
" "
"%s:&nbsp;<code>%s</code>"
" "
"%s:&nbsp;<code>%s</code>"
"</div>",
Txt_Text,Text,
Txt_Inline_math,InlineMath,

View File

@ -1043,9 +1043,7 @@ static void Soc_WriteSocialNote (const struct SocialNote *SocNot,
Crs.CrsCod = -1L;
/***** Write sharer/commenter if distinct to author *****/
// if (!ShowNoteAlone && // Listing, not note alone
// SocPub) // SocPub may be NULL
if (SocPub) // SocPub may be NULL
if (SocPub) // SocPub may be NULL
Soc_WriteTopPublisher (SocPub);
/***** Initialize structure with user's data *****/
@ -1832,20 +1830,22 @@ static void Soc_PutTextarea (const char *Placeholder)
fprintf (Gbl.F.Out,"<textarea name=\"Content\" rows=\"1\" maxlength=\"%u\""
" placeholder=\"%s&hellip;\""
" class=\"SOCIAL_TEXTAREA\""
" onfocus=\"expandTextarea(this,'%s','10');\""
" onfocus=\"expandTextarea(this,'%s','5');\""
" onblur=\"contractTextarea(this,'%s','1');\">"
"</textarea>",
Soc_MAX_CHARS_IN_POST,
Placeholder,
IdButton,IdButton);
/***** Submit button *****/
fprintf (Gbl.F.Out,"<button id=\"%s\" type=\"submit\""
" class=\"BT_SUBMIT_INLINE BT_CREATE\""
" style=\"display:none;\">"
/***** Help on editor and submit button *****/
fprintf (Gbl.F.Out,"<div id=\"%s\" style=\"display:none;\">",
IdButton);
Lay_HelpPlainEditor ();
fprintf (Gbl.F.Out,"<button type=\"submit\""
" class=\"BT_SUBMIT_INLINE BT_CREATE\">"
"%s"
"</button>",
IdButton,
"</button>"
"</div>",
Txt_Post);
}