assets/javascripts/materialize/forms.js in materialize-sass-1.0.0.beta vs assets/javascripts/materialize/forms.js in materialize-sass-1.0.0.rc1

- old
+ new

@@ -43,11 +43,11 @@ if ($textarea instanceof Element) { $textarea = $($textarea); } if (!$textarea.length) { - console.error("No textarea element found"); + console.error('No textarea element found'); return; } // Textarea Auto Resize var hiddenDiv = $('.hiddendiv').first(); @@ -184,14 +184,14 @@ * @param {Event} e */ document.addEventListener('blur', function (e) { var $inputElement = $(e.target); if ($inputElement.is(input_selector)) { - var selector = ".prefix"; + var selector = '.prefix'; if ($inputElement[0].value.length === 0 && $inputElement[0].validity.badInput !== true && $inputElement.attr('placeholder') === null) { - selector += ", label"; + selector += ', label'; } $inputElement.siblings(selector).removeClass('active'); M.validate_field($inputElement); } }, true); @@ -236,10 +236,10 @@ var files = $(this)[0].files; var file_names = []; for (var i = 0; i < files.length; i++) { file_names.push(files[i].name); } - path_input[0].value = file_names.join(", "); + path_input[0].value = file_names.join(', '); path_input.trigger('change'); }); }); // End of $(document).ready })(cash);