mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
fix for responsive avatar, fix for submit/discard buttons taking you away from the thread
This commit is contained in:
@@ -54,8 +54,8 @@
|
||||
<span class="btn btn-link" tabindex="-1"><i class="icon-list"></i></span>
|
||||
</div>
|
||||
<div class="btn-group" style="float: right; margin-right: -12px">
|
||||
<a id="submit_post_btn" class="btn" onclick="app.post_topic()"><i class="icon-ok"></i> Submit</a>
|
||||
<a class="btn" onclick="jQuery(post_window).slideToggle(250);"><i class="icon-remove"></i> Discard</a>
|
||||
<span id="submit_post_btn" class="btn" onclick="app.post_topic()"><i class="icon-ok"></i> Submit</span>
|
||||
<span class="btn" onclick="jQuery(post_window).slideToggle(250);"><i class="icon-remove"></i> Discard</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -3,10 +3,6 @@ var RDB = require('./redis.js'),
|
||||
marked = require('marked'),
|
||||
user = require('./user.js');
|
||||
|
||||
marked.setOptions({
|
||||
breaks: true
|
||||
});
|
||||
|
||||
(function(Posts) {
|
||||
//data structure
|
||||
//*global:next_post_id
|
||||
@@ -105,10 +101,10 @@ marked.setOptions({
|
||||
});
|
||||
|
||||
user.get_user_postdetails([uid], function(user_details) {
|
||||
user.get_gravatars_by_uids([uid], 80, function(gravatars) {
|
||||
user.get_gravatars_by_uids([uid], '', function(gravatars) {
|
||||
var timestamp = new Date().getTime();
|
||||
|
||||
socket.broadcast.to('topic_' + tid).emit('event:new_post', {
|
||||
socket.in('topic_' + tid).emit('event:new_post', {
|
||||
'posts' : [
|
||||
{
|
||||
'pid' : pid,
|
||||
|
||||
Reference in New Issue
Block a user