Sha256: 87611630dc3c0652325bbf9dc891eaac9181a61f2fe9c890c5cb6bbdafea207c
Contents?: true
Size: 605 Bytes
Versions: 27
Compression:
Stored size: 605 Bytes
Contents
"use strict"; (function ($) { $('.input-default-wrapper').on('change', '.input-default-js', function (e) { var $this = $(e.target), $label = $this.next('label'), $files = $this[0].files; var fileName = ''; if ($files && $files.length > 1) { fileName = ($this.attr('data-multiple-target') || '').replace('{target}', $files.length); } else if (e.target.value) { fileName = e.target.value.split('\\').pop(); } if (fileName) { $label.find('.span-choose-file').html(fileName); } else { $label.html($label.html()); } }); })(jQuery);
Version data entries
27 entries across 27 versions & 2 rubygems