Skip to content

Commit

Permalink
change substr to substring
Browse files Browse the repository at this point in the history
Conflicts:
	assets/admin.js
  • Loading branch information
Chris Mospaw committed Oct 28, 2014
1 parent 0b2619f commit 2d5581e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions assets/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@
diffClass = 'maxlength-remaining-short';
}
$counter.removeClass('maxlength-remaining-short').addClass(diffClass).html(diff);

if (diff <= 1) {
$(this).val( $(this).val.substring(0, $(this).data('maxlength')) );
}

}).change();

$('.broadcast-interstitial .broadcast-edit a.tweet-reply-link').click(function(e) {
Expand Down

0 comments on commit 2d5581e

Please sign in to comment.