mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixing validator issues
This commit is contained in:
4
static/dist/lib/materialize.js
vendored
4
static/dist/lib/materialize.js
vendored
@@ -5688,7 +5688,7 @@ Picker.extend( 'pickadate', DatePicker )
|
||||
$.fn.characterCounter = function(){
|
||||
return this.each(function(){
|
||||
|
||||
itHasLengthAttribute = $(this).attr('length') != undefined;
|
||||
itHasLengthAttribute = $(this).attr('data-length') != undefined;
|
||||
|
||||
if(itHasLengthAttribute){
|
||||
$(this).on('input', updateCounter);
|
||||
@@ -5702,7 +5702,7 @@ Picker.extend( 'pickadate', DatePicker )
|
||||
};
|
||||
|
||||
function updateCounter(){
|
||||
var maxLength = +$(this).attr('length'),
|
||||
var maxLength = +$(this).attr('data-length'),
|
||||
actualLength = +$(this).val().length,
|
||||
isValidLength = actualLength <= maxLength;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user