Skip to content

Commit de34af8

Browse files
committed
Text count message param name
1 parent 1548256 commit de34af8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

textcounter.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// append the count element
2525
var counterText = base.options.countDown ? base.options.countDownText : base.options.counterText,
2626
counterNum = base.options.countDown ? base.options.max : 0,
27-
$formatted_counter_text = $('<div/>').addClass(base.options.textCountMessage)
27+
$formatted_counter_text = $('<div/>').addClass(base.options.textCountMessageClass)
2828
.html(counterText.replace('%d', '<span class="' + base.options.textCountClass + '">' + counterNum + '</span>')),
2929
$count_overflow_text = $('<div/>').addClass(base.options.countOverflowContainerClass);
3030

@@ -249,7 +249,7 @@
249249
};
250250

251251
base.setOverflowMessage = function () {
252-
base.hideMessage(base.$container.find('.' + base.options.textCountMessage));
252+
base.hideMessage(base.$container.find('.' + base.options.textCountMessageClass));
253253

254254
base.removeOverflowMessage();
255255

@@ -281,7 +281,7 @@
281281

282282
if ($countEl.children('.error-text').length == 0) {
283283
base.removeOverflowMessage();
284-
base.showMessage(base.$container.find('.' + base.options.textCountMessage));
284+
base.showMessage(base.$container.find('.' + base.options.textCountMessageClass));
285285
$this.removeClass(base.options.inputErrorClass);
286286
$countEl.removeClass(base.options.counterErrorClass);
287287
}
@@ -297,7 +297,7 @@
297297
'max' : 200, // maximum number of characters/words, -1 for unlimited, 'auto' to use maxlength attribute
298298
'countContainerElement' : "div", // HTML element to wrap the text count in
299299
'countContainerClass' : "text-count-wrapper", // class applied to the countContainerElement
300-
'textCountMessage' : "text-count-message", // class applied to the counter message
300+
'textCountMessageClass' : "text-count-message", // class applied to the counter message
301301
'textCountClass' : "text-count", // class applied to the counter length (the count number)
302302
'inputErrorClass' : "error", // error class appended to the input element if error occurs
303303
'counterErrorClass' : "error", // error class appended to the countContainerElement if error occurs

textcounter.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)