removed move button from main post, disable moving main post, fixed
moving posts.
This commit is contained in:
barisusakli
2014-06-23 18:06:59 -04:00
parent 9af12819e3
commit bd4722665d
6 changed files with 24 additions and 20 deletions

View File

@@ -62,7 +62,7 @@ SocketModules.composer.push = function(socket, pid, callback) {
topics.getTopicTags(postData.tid, next);
},
isMain: function(next) {
postTools.isMain(pid, postData.tid, next);
posts.isMain(pid, next);
}
}, function(err, results) {
if(err) {
@@ -82,15 +82,9 @@ SocketModules.composer.push = function(socket, pid, callback) {
};
SocketModules.composer.editCheck = function(socket, pid, callback) {
posts.getPostField(pid, 'tid', function(err, tid) {
if (err) {
return callback(err);
}
postTools.isMain(pid, tid, function(err, isMain) {
callback(err, {
titleEditable: isMain
});
posts.isMain(pid, function(err, isMain) {
callback(err, {
titleEditable: isMain
});
});
};