mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
fixing quoting that broke with the introduction of the new post window
This commit is contained in:
@@ -443,10 +443,15 @@
|
||||
if (thread_state.locked !== '1') {
|
||||
var pid = $(this).parents('li').attr('data-pid');
|
||||
|
||||
require(['composer'], function(cmp) {
|
||||
cmp.push(tid);
|
||||
$('.post-window textarea').val('> ' + $('#content_' + pid).html() + '\n');
|
||||
socket.once('api:posts.getRawPost', function(data) {
|
||||
quoted = '> ' + data.post.replace(/\n/g, '\n> ') + '\n\n';
|
||||
require(['composer'], function(cmp) {
|
||||
cmp.push(tid, null, null, quoted);
|
||||
});
|
||||
});
|
||||
socket.emit('api:posts.getRawPost', { pid: pid });
|
||||
// $('.post-window textarea').val('> ' + $('#content_' + pid).html() + '\n');
|
||||
// });
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user