From 39ff28141e37aec232bd3c8e236a27f8162656cc Mon Sep 17 00:00:00 2001 From: erqan Date: Tue, 24 Jun 2014 20:01:38 +0300 Subject: [PATCH] fixing DM splitting issue... thanks to @RealVegOs splitting is exactly disabled at DMs. --- js/interface_common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/interface_common.js b/js/interface_common.js index c5b650f..cceab36 100644 --- a/js/interface_common.js +++ b/js/interface_common.js @@ -582,7 +582,7 @@ function replyTextKeypress(e) { if ($.Options.getUnicodeConversionOpt() !== "disable") $this.val(convert2Unicodes($this.val(), $this)); var c = 140 - $this.val().length; - if (usePostSpliting) { + if (usePostSpliting && !$this.parents('.directMessages').length) { var $tas = tweetForm.find("textarea"); splitedPostsCount = $tas.length; if ($this.hasClass('splited-post')) @@ -657,7 +657,7 @@ function replyTextKeypress(e) { else remainingCount.removeClass("warn"); - if (usePostSpliting) + if (usePostSpliting && !$this.parents('.directMessages').length) remainingCount.text(splitedPostsCount.toString() + ". post: " + c.toString()); else remainingCount.text(c.toString());