@ -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;