mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-03-12 13:31:14 +00:00
fix of wrong binding of functions on keyup event
This commit is contained in:
parent
9fb767619e
commit
c60b8ef17e
@ -24,8 +24,11 @@ function initializeTwister( redirectNetwork, redirectLogin, cbFunc, cbArg ) {
|
||||
$.mobile.silentScroll(0);
|
||||
});
|
||||
// reply text counter both newmsg and dmchat
|
||||
var $replyText = $( ".post-area-new textarea" );
|
||||
$replyText.off('input keyup').on('keyup', replyTextInput, function() { replyTextUpdateRemaining(this); });
|
||||
$('.post-area-new textarea')
|
||||
.off('input keyup')
|
||||
.on('keyup', replyTextInput)
|
||||
.on('keyup', function() { replyTextUpdateRemaining(this); })
|
||||
;
|
||||
|
||||
handlersInstalled = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user