Permalink
Browse files

I have no idea what this was supposed to be doing

Having the character counter set at a fixed width seems completely ridiculous, and I can only imagine the plug-in author had some reason at some point. Anyway, removing the inline styling works fine for our needs, and the counter no longer breaks the form when it gets too small.
  • Loading branch information...
1 parent c106cdf commit dd3af23e69c5cfb0b48f72913cdd03d4883c5d43 @andrewhayward andrewhayward committed Dec 5, 2012
Showing with 0 additions and 6 deletions.
  1. +0 −6 gameon/base/static/base/js/libs/jquery.textareaCounter.plugin.js
View
6 gameon/base/static/base/js/libs/jquery.textareaCounter.plugin.js
@@ -23,14 +23,8 @@
$("<div class='charleft'>&nbsp;</div>").insertAfter(container);
- //create charleft css
- var charLeftCss = {
- 'width' : container.width()
- };
-
var charLeftInfo = getNextCharLeftInformation(container);
charLeftInfo.addClass(options.originalStyle);
- charLeftInfo.css(charLeftCss);
var numInput = 0;
var maxCharacters = options.maxCharacterSize;

0 comments on commit dd3af23

Please sign in to comment.