mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 22:45:46 +01:00
fixed module.js callback format
This commit is contained in:
@@ -47,7 +47,7 @@ define(['taskbar'], function(taskbar) {
|
||||
if(allowed()) {
|
||||
socket.emit('modules.composer.push', {
|
||||
pid: pid
|
||||
}, function(threadData) {
|
||||
}, function(err, threadData) {
|
||||
push({
|
||||
pid: pid,
|
||||
title: threadData.title,
|
||||
@@ -108,8 +108,8 @@ define(['taskbar'], function(taskbar) {
|
||||
} else if (parseInt(postData.pid) > 0) {
|
||||
titleEl.val(postData.title);
|
||||
titleEl.prop('readOnly', true);
|
||||
socket.emit('modules.composer.editCheck', postData.pid, function(editCheck) {
|
||||
if (editCheck.titleEditable) {
|
||||
socket.emit('modules.composer.editCheck', postData.pid, function(err, editCheck) {
|
||||
if (!err && editCheck.titleEditable) {
|
||||
postContainer.find('input').prop('readonly', false);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user