mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
removed inline css
This commit is contained in:
@@ -227,9 +227,9 @@ define(['taskbar', 'string'], function(taskbar, S) {
|
|||||||
var chatContent = chatModal.find('#chat-content');
|
var chatContent = chatModal.find('#chat-content');
|
||||||
|
|
||||||
var date = new Date(parseInt(timestamp, 10));
|
var date = new Date(parseInt(timestamp, 10));
|
||||||
// todo Add this to a stylesheet instead of style tag
|
|
||||||
var prefix = '<span style="color: darkgrey;" class="chat-timestamp">' + date.toLocaleTimeString() + '</span> ';
|
var prefix = '<span class="chat-timestamp">' + date.toLocaleTimeString() + '</span> ';
|
||||||
message = "<div>" + S(prefix + message).stripTags('p').s + "</div>";
|
message = '<li>' + S(prefix + message).stripTags('p').s + '</li>';
|
||||||
|
|
||||||
chatContent.append(message);
|
chatContent.append(message);
|
||||||
scrollToBottom(chatContent);
|
scrollToBottom(chatContent);
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<h4>[[modules:chat.chatting_with]]</h4>
|
<h4>[[modules:chat.chatting_with]]</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div id="chat-content" class="well well-sm" style="height:250px; overflow-y:scroll; font-size: 14px;"></div>
|
<ul id="chat-content" class="well well-sm"></ul>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input id="chat-message-input" type="text" placeholder="[[modules:chat.placeholder]]" name="chat-message" class="form-control">
|
<input id="chat-message-input" type="text" placeholder="[[modules:chat.placeholder]]" name="chat-message" class="form-control">
|
||||||
<span class="input-group-btn">
|
<span class="input-group-btn">
|
||||||
|
|||||||
Reference in New Issue
Block a user