Browse Source

fix of wrong binding of functions on keyup event

master
Simon Grim 10 years ago
parent
commit
c60b8ef17e
  1. 7
      js/tmobile.js

7
js/tmobile.js

@ -24,8 +24,11 @@ function initializeTwister( redirectNetwork, redirectLogin, cbFunc, cbArg ) {
$.mobile.silentScroll(0); $.mobile.silentScroll(0);
}); });
// reply text counter both newmsg and dmchat // reply text counter both newmsg and dmchat
var $replyText = $( ".post-area-new textarea" ); $('.post-area-new textarea')
$replyText.off('input keyup').on('keyup', replyTextInput, function() { replyTextUpdateRemaining(this); }); .off('input keyup')
.on('keyup', replyTextInput)
.on('keyup', function() { replyTextUpdateRemaining(this); })
;
handlersInstalled = true; handlersInstalled = true;
} }

Loading…
Cancel
Save