Skip to content

Commit 5ccb0b1

Browse files
committed
Merge a11ty improvements from @goranmiric
1 parent 716a1c2 commit 5ccb0b1

6 files changed

Lines changed: 11 additions & 10 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,4 @@ init : function(el){} // Callback: func
169169
- [diptopol](https://github.com/diptopol) - `stopInputAtMaximum` with `twoCharCarriageReturn` count fix, trimmed newline calculation fix, maximum text reached condition fix, text count overflow notification
170170
- [trevorloflin](https://github.com/trevorloflin) - `minDisplayCutoff` and `maxDisplayCutoff` options
171171
- [t3mujin](https://github.com/t3mujin) - autocustom support (maxlength workaround), text fixes
172+
- [goranmiric ](https://github.com/goranmiric) - accessibility enhancements

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.8.0",
3+
"version": "0.9.0",
44
"main": "textcounter.js",
55
"license": "MIT",
66
"ignore": [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"minimum",
1212
"maximum"
1313
],
14-
"version": "0.8.0",
14+
"version": "0.9.0",
1515
"author": {
1616
"name": "ractoon",
1717
"url": "https://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.8.0",
12+
"version": "0.9.0",
1313
"author": {
1414
"name": "ractoon",
1515
"url": "https://www.ractoon.com"

textcounter.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* jQuery Text Counter Plugin v0.8.0
2+
* jQuery Text Counter Plugin v0.9.0
33
* https://github.com/ractoon/jQuery-Text-Counter
44
*
55
* Copyright 2014 ractoon
@@ -71,7 +71,7 @@
7171
}
7272
else if (base.options.max == 'autocustom') {
7373
var max = base.$el.attr(base.options.autoCustomAttr);
74-
74+
7575
if (typeof max !== 'undefined' && max !== false) {
7676
base.options.max = max;
7777
}
@@ -162,11 +162,11 @@
162162
base.clearErrors('max');
163163
}
164164
}
165-
165+
166166
// hide the counter if it doesn't meet either the minimum or maximum display cutoff
167167
if (base.options.minDisplayCutoff == -1 && base.options.maxDisplayCutoff == -1) {
168-
base.$container.show();
169-
} else if (textCount <= base.options.min + base.options.minDisplayCutoff) {
168+
base.$container.show();
169+
} else if (textCount <= base.options.min + base.options.minDisplayCutoff) {
170170
base.$container.show();
171171
} else if (base.options.max !== -1 && textCount >= base.options.max - base.options.maxDisplayCutoff) {
172172
base.$container.show();

textcounter.min.js

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

0 commit comments

Comments
 (0)