mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
tmp fix for nested if
This commit is contained in:
@@ -105,18 +105,18 @@ define(['taskbar'], function(taskbar) {
|
||||
|
||||
if (parseInt(postData.tid) > 0) {
|
||||
titleEl.val('Replying to: ' + postData.title);
|
||||
titleEl.prop('readOnly', true);
|
||||
titleEl.prop('disabled', true);
|
||||
} else if (parseInt(postData.pid) > 0) {
|
||||
titleEl.val(postData.title);
|
||||
titleEl.prop('readOnly', true);
|
||||
titleEl.prop('disabled', true);
|
||||
socket.emit('modules.composer.editCheck', postData.pid, function(err, editCheck) {
|
||||
if (!err && editCheck.titleEditable) {
|
||||
postContainer.find('input').prop('readonly', false);
|
||||
titleEl.prop('disabled', false);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
titleEl.val(postData.title);
|
||||
titleEl.prop('readOnly', false);
|
||||
titleEl.prop('disabled', false);
|
||||
}
|
||||
|
||||
bodyEl.val(postData.body);
|
||||
|
||||
Reference in New Issue
Block a user