load later
This commit is contained in:
parent
a3f32323b1
commit
99a37b946a
1 changed files with 19 additions and 17 deletions
|
@ -1,4 +1,5 @@
|
||||||
django.jQuery(function() {
|
window.addEventListener("load", function() {
|
||||||
|
django.jQuery(function() {
|
||||||
django.jQuery('textarea[maxlength]').each(function(i, textarea) {
|
django.jQuery('textarea[maxlength]').each(function(i, textarea) {
|
||||||
var t = django.jQuery(textarea),
|
var t = django.jQuery(textarea),
|
||||||
count = t.parent().find('.maxlength-count')
|
count = t.parent().find('.maxlength-count')
|
||||||
|
@ -15,4 +16,5 @@ django.jQuery(function() {
|
||||||
count.html(left + ' characters left. (max: ' + max + ')')
|
count.html(left + ' characters left. (max: ' + max + ')')
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue