12 lines
398 B
JavaScript
12 lines
398 B
JavaScript
|
(function($) {
|
||
|
'use strict';
|
||
|
$(function() {
|
||
|
$('.file-upload-browse').on('click', function() {
|
||
|
var file = $(this).parent().parent().parent().find('.file-upload-default');
|
||
|
file.trigger('click');
|
||
|
});
|
||
|
$('.file-upload-default').on('change', function() {
|
||
|
$(this).parent().find('.form-control').val($(this).val().replace(/C:\\fakepath\\/i, ''));
|
||
|
});
|
||
|
});
|
||
|
})(jQuery);
|