changed post links to "topic/<topic_id>/<topic_slug>/<post_id>"
This commit is contained in:
barisusakli
2014-06-02 17:31:09 -04:00
parent 46028e49f7
commit 55dbc5c823
10 changed files with 122 additions and 84 deletions

View File

@@ -441,7 +441,7 @@ define('composer', ['taskbar', 'composer/controls', 'composer/uploads', 'compose
titleEl.val(titleEl.val().trim());
bodyEl.val(bodyEl.val().trim());
if(thumbEl.length) {
if (thumbEl.length) {
thumbEl.val(thumbEl.val().trim());
}
@@ -453,6 +453,8 @@ define('composer', ['taskbar', 'composer/controls', 'composer/uploads', 'compose
return composerAlert('[[error:title-too-short, ' + config.minimumTitleLength + ']]');
} else if (checkTitle && titleEl.val().length > parseInt(config.maximumTitleLength, 10)) {
return composerAlert('[[error:title-too-long, ' + config.maximumTitleLength + ']]');
} else if (checkTitle && !utils.slugify(titleEl.val()).length) {
return composerAlert('[[error:invalid-title]]');
} else if (bodyEl.val().length < parseInt(config.minimumPostLength, 10)) {
return composerAlert('[[error:content-too-short, ' + config.minimumPostLength + ']]');
}