Skip to content

Commit 3d78f7d

Browse files
committed
Multiple classes errorText fix
1 parent 52ff64b commit 3d78f7d

6 files changed

Lines changed: 10 additions & 12 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,4 +155,5 @@ init : function(el){} // Callback: function(element
155155
- [SammyB](https://github.com/SammyB) - countdown starting count fix
156156
- [eprincen2](https://github.com/eprincen2) - jQuery Validate compatibility fix
157157
- [Hexodus](https://github.com/Hexodus) - minunder/maxunder events
158-
- [juliovedovatto](https://github.com/juliovedovatto) / [alvaro-canepa](https://github.com/alvaro-canepa) - multiple classes support for counter container
158+
- [juliovedovatto](https://github.com/juliovedovatto) / [alvaro-canepa](https://github.com/alvaro-canepa) - multiple classes support for counter container
159+
- [dtipson](https://github.com/dtipson) - multiple classes error fix

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jquery-text-counter",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"main": "textcounter.js",
55
"license": "MIT",
66
"ignore": [

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"minimum",
1212
"maximum"
1313
],
14-
"version": "0.5.0",
1514
"author": {
1615
"name": "ractoon",
1716
"url": "http://www.ractoon.com"

textcounter.jquery.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"minimum",
1010
"maximum"
1111
],
12-
"version": "0.4.0",
12+
"version": "0.4.1",
1313
"author": {
1414
"name": "ractoon",
1515
"url": "http://www.ractoon.com"

textcounter.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* jQuery Text Counter Plugin v0.4.0
2+
* jQuery Text Counter Plugin v0.4.1
33
* https://github.com/ractoon/jQuery-Text-Counter
44
*
55
* Copyright 2014 ractoon
@@ -25,8 +25,8 @@
2525
var counterText = base.options.countDown ? base.options.countDownText : base.options.counterText,
2626
counterNum = base.options.countDown ? base.options.max : 0;
2727

28-
base.$text_counter = $('<span />').addClass(base.options.textCountClass).text(counterNum);
29-
base.$container = $('<' + base.options.countContainerElement + '/>').addClass(base.options.countContainerClass).text(counterText).append(base.$text_counter);
28+
base.$text_counter = $('<span />').addClass(base.options.textCountClass).text(counterNum);
29+
base.$container = $('<' + base.options.countContainerElement + '/>').addClass(base.options.countContainerClass).text(counterText).append(base.$text_counter);
3030
base.$el.after(base.$container);
3131

3232
// bind input events
@@ -164,7 +164,8 @@
164164

165165
base.setErrors = function(type) {
166166
var $this = base.$el,
167-
$countEl = $base.$container;
167+
$countEl = base.$container,
168+
errorText = '';
168169

169170
$this.addClass(base.options.inputErrorClass);
170171
$countEl.addClass(base.options.counterErrorClass);

textcounter.min.js

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)