From: Art Cancro Date: Wed, 22 Dec 2010 22:50:49 +0000 (-0500) Subject: Room info popup is now onMouseOver instead of onClick X-Git-Tag: v8.11~965 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=a65e58f4cf84f22713c926d33ec95b830f60f183 Room info popup is now onMouseOver instead of onClick --- diff --git a/webcit/roomtokens.c b/webcit/roomtokens.c index cff35cdf5..917ac5a94 100644 --- a/webcit/roomtokens.c +++ b/webcit/roomtokens.c @@ -470,8 +470,10 @@ void tmplput_ThisRoomInfoText(StrBuf *Target, WCTemplputParams *TP) /* only a certain number of characters */ StrBuf *SubBuf; SubBuf = NewStrBufDup(WCC->CurRoom.XInfoText); - StrBuf_Utf8StrCut(SubBuf, nchars); - StrBufAppendBufPlain(SubBuf, HKEY("..."), 0); + if (StrLength(SubBuf) > nchars) { + StrBuf_Utf8StrCut(SubBuf, nchars); + StrBufAppendBufPlain(SubBuf, HKEY("..."), 0); + } StrBufAppendTemplate(Target, TP, SubBuf, 1); FreeStrBuf(&SubBuf); } diff --git a/webcit/static/styles/webcit.css b/webcit/static/styles/webcit.css index 792f8a3a9..27e91e5b8 100644 --- a/webcit/static/styles/webcit.css +++ b/webcit/static/styles/webcit.css @@ -64,7 +64,7 @@ body { #online_users li.inactiveuser a { background-color: transparent } -#room_infos, #address_book_popup,.roomops_cell, .roomops_cell_edit, .mimepart { +#room_infos, #address_book_popup, .roomops_cell, .roomops_cell_edit, .mimepart { background-color: #F0FFFF; color: #333; } diff --git a/webcit/static/t/readinfo.html b/webcit/static/t/readinfo.html index 1f64b7f16..8fc2a5a09 100644 --- a/webcit/static/t/readinfo.html +++ b/webcit/static/t/readinfo.html @@ -1,7 +1,9 @@ -
+