mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
fixed quoting
This commit is contained in:
@@ -434,14 +434,13 @@
|
|||||||
var pid = $(this).parents('li').attr('data-pid');
|
var pid = $(this).parents('li').attr('data-pid');
|
||||||
|
|
||||||
socket.once('api:posts.getRawPost', function(data) {
|
socket.once('api:posts.getRawPost', function(data) {
|
||||||
|
|
||||||
quoted = '> ' + data.post.replace(/\n/g, '\n> ') + '\n\n';
|
quoted = '> ' + data.post.replace(/\n/g, '\n> ') + '\n\n';
|
||||||
require(['composer'], function(cmp) {
|
require(['composer'], function(cmp) {
|
||||||
cmp.push(tid, null, null, quoted);
|
cmp.push(tid, null, null, quoted);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
socket.emit('api:posts.getRawPost', { pid: pid });
|
socket.emit('api:posts.getRawPost', { pid: pid });
|
||||||
// $('.post-window textarea').val('> ' + $('#content_' + pid).html() + '\n');
|
|
||||||
// });
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -339,7 +339,8 @@ var SocketIO = require('socket.io').listen(global.server, { log:false }),
|
|||||||
|
|
||||||
socket.emit('api:composer.push', {
|
socket.emit('api:composer.push', {
|
||||||
tid: data.tid,
|
tid: data.tid,
|
||||||
title: topicData.title
|
title: topicData.title,
|
||||||
|
body: topicData.body
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
} else if (parseInt(data.cid) > 0) {
|
} else if (parseInt(data.cid) > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user