Browse Source

bug fix on split function

master
erqan 11 years ago
parent
commit
aa0d2c6c7b
  1. 4
      js/interface_common.js

4
js/interface_common.js

@ -491,7 +491,7 @@ function replyTextKeypress(e) {
} }
splitedPosts[i] = $tas[i].value; splitedPosts[i] = $tas[i].value;
} }
for (var i = splitedPosts.length-1; i >= 0; i--) { for (var i = splitedPosts.length-1; i > 0; i--) {
if (splitedPosts[i].length == 0) if (splitedPosts[i].length == 0)
splitedPosts.splice(i, 1); splitedPosts.splice(i, 1);
} }
@ -1047,7 +1047,7 @@ var postSubmit = function(e)
} }
} }
if (splitedPosts.length == 1) { if (splitedPosts.length <= 1) {
if (splitedPostsCount > 1) if (splitedPostsCount > 1)
newPostMsg("(" + splitedPostsCount.toString() + "/" + splitedPostsCount.toString() + ") " + splitedPosts[0], $postOrig); newPostMsg("(" + splitedPostsCount.toString() + "/" + splitedPostsCount.toString() + ") " + splitedPosts[0], $postOrig);
else else

Loading…
Cancel
Save