mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-04 11:31:23 +01:00
fix post edit
This commit is contained in:
@@ -465,7 +465,7 @@ define('composer', [
|
||||
thumbEl.val(thumbEl.val().trim());
|
||||
}
|
||||
|
||||
var checkTitle = parseInt(postData.cid, 10) || parseInt(postData.pid, 10);
|
||||
var checkTitle = (parseInt(postData.cid, 10) || parseInt(postData.pid, 10)) && postContainer.find('input.title').length;
|
||||
|
||||
if (uploads.inProgress[post_uuid] && uploads.inProgress[post_uuid].length) {
|
||||
return composerAlert(post_uuid, '[[error:still-uploading]]');
|
||||
|
||||
@@ -89,10 +89,14 @@ var cache = LRU({
|
||||
tid: tid,
|
||||
cid: results.cid,
|
||||
uid: postData.uid,
|
||||
mainPid: data.pid,
|
||||
title: title,
|
||||
slug: tid + '/' + utils.slugify(title)
|
||||
mainPid: data.pid
|
||||
};
|
||||
|
||||
if (title) {
|
||||
topicData.title = title;
|
||||
topicData.slug = tid + '/' + utils.slugify(title);
|
||||
}
|
||||
|
||||
if (options.topic_thumb) {
|
||||
topicData.thumb = options.topic_thumb;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user