mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-27 23:24:26 +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")
|
if ($.Options.getUnicodeConversionOpt() !== "disable")
|
||||||
$this.val(convert2Unicodes($this.val(), $this));
|
$this.val(convert2Unicodes($this.val(), $this));
|
||||||
var c = 140 - $this.val().length;
|
var c = 140 - $this.val().length;
|
||||||
if (usePostSpliting) {
|
if (usePostSpliting && !$this.parents('.directMessages').length) {
|
||||||
var $tas = tweetForm.find("textarea");
|
var $tas = tweetForm.find("textarea");
|
||||||
splitedPostsCount = $tas.length;
|
splitedPostsCount = $tas.length;
|
||||||
if ($this.hasClass('splited-post'))
|
if ($this.hasClass('splited-post'))
|
||||||
@ -657,7 +657,7 @@ function replyTextKeypress(e) {
|
|||||||
else
|
else
|
||||||
remainingCount.removeClass("warn");
|
remainingCount.removeClass("warn");
|
||||||
|
|
||||||
if (usePostSpliting)
|
if (usePostSpliting && !$this.parents('.directMessages').length)
|
||||||
remainingCount.text(splitedPostsCount.toString() + ". post: " + c.toString());
|
remainingCount.text(splitedPostsCount.toString() + ". post: " + c.toString());
|
||||||
else
|
else
|
||||||
remainingCount.text(c.toString());
|
remainingCount.text(c.toString());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user