|
|
@ -1151,15 +1151,20 @@ function undoLastUnicode(e) { |
|
|
|
lastConvertedIndex = $ta.val().length; |
|
|
|
lastConvertedIndex = $ta.val().length; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var postSubmit = function(e) |
|
|
|
var postSubmit = function(e, oldLastPostId) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var $this = $( this ); |
|
|
|
var $this = $( this ); |
|
|
|
if (e instanceof $) |
|
|
|
if (e instanceof $) { |
|
|
|
$this = e; |
|
|
|
$this = e; |
|
|
|
else { |
|
|
|
//check if previous part was sent...
|
|
|
|
|
|
|
|
if ( oldLastPostId === lastPostId) |
|
|
|
|
|
|
|
setTimeout(postSubmit, 1000, $this, oldLastPostId); |
|
|
|
|
|
|
|
} else { |
|
|
|
e.stopPropagation(); |
|
|
|
e.stopPropagation(); |
|
|
|
e.preventDefault(); |
|
|
|
e.preventDefault(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
$.MAL.disableButton($this); |
|
|
|
|
|
|
|
|
|
|
|
var $replyText = $this.closest(".post-area-new").find("textarea"); |
|
|
|
var $replyText = $this.closest(".post-area-new").find("textarea"); |
|
|
|
|
|
|
|
|
|
|
|
var $postOrig = $this.closest(".post-data"); |
|
|
|
var $postOrig = $this.closest(".post-data"); |
|
|
@ -1201,7 +1206,7 @@ var postSubmit = function(e) |
|
|
|
$($replyText[0]).remove(); |
|
|
|
$($replyText[0]).remove(); |
|
|
|
|
|
|
|
|
|
|
|
newPostMsg(postxt, $postOrig); |
|
|
|
newPostMsg(postxt, $postOrig); |
|
|
|
setTimeout(postSubmit, 1000, $this); |
|
|
|
setTimeout(postSubmit, 1000, $this, lastPostId); |
|
|
|
|
|
|
|
|
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|