Total Complexity | 4 |
Complexity/F | 1 |
Lines of Code | 12 |
Function Count | 4 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | (function($) { |
||
2 | 'use strict'; |
||
3 | $(function() { |
||
4 | $('.file-upload-browse').on('click', function() { |
||
5 | var file = $(this).parent().parent().parent().find('.file-upload-default'); |
||
6 | file.trigger('click'); |
||
7 | }); |
||
8 | $('.file-upload-default').on('change', function() { |
||
9 | $(this).parent().find('.form-control').val($(this).val().replace(/C:\\fakepath\\/i, '')); |
||
10 | }); |
||
11 | }); |
||
12 | })(jQuery); |