Skip to content

Commit

Permalink
Merge pull request #2 from kdrdgn/master
Browse files Browse the repository at this point in the history
i fixed commas
  • Loading branch information
joshmcrty committed Jan 17, 2013
2 parents ae53d46 + 0e14fbd commit d066e28
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions jquery.SimpleMaxChars.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,12 @@
// Can be overwritten with your own message function if you want. Example: $.fn.SimpleMaxChars.message = function( chars, opts, maxLength ) { doMyStuff; return myStuff; } );
$.fn.SimpleMaxChars.message = function( chars, opts, maxLength ) {

var remainingChars = maxLength - chars;
lineBreak = "";
html = "";
var remainingChars = maxLength - chars,
lineBreak = "",
html = "",
messageClass = opts.messageClass,
remainingMessage = opts.remainingMessage.replace('__remaining_chars__', remainingChars)
remainingMessage = opts.remainingMessage.replace('__remaining_chars__', remainingChars);

if ( opts.lineBreak === true ) {
lineBreak = '<br />';
}
Expand Down

0 comments on commit d066e28

Please sign in to comment.