Merge commit 'holizz/0.8.x-fasterjs' into 0.8.x
This commit is contained in:
commit
aba2fcb451
@ -23,7 +23,9 @@ $(document).ready(function(){
|
||||
var currentLength = $("#notice_data-text").val().length;
|
||||
var remaining = maxLength - currentLength;
|
||||
var counter = $("#notice_text-count");
|
||||
counter.text(remaining);
|
||||
if (counter.text() != String(remaining)) {
|
||||
counter.text(remaining);
|
||||
}
|
||||
|
||||
if (remaining < 0) {
|
||||
$("#form_notice").addClass("warning");
|
||||
|
Loading…
Reference in New Issue
Block a user