mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-14 00:48:05 +00:00
fixing DM splitting issue... thanks to @RealVegOs
splitting is exactly disabled at DMs.
This commit is contained in:
parent
f25c6389c3
commit
39ff28141e
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user