Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Lines | 16 |
Ratio | 100 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | View Code Duplication | $('i.glyphicon-refresh-animate').hide(); |
|
9 | $('.btn-assign').click(function (e) { |
||
10 | e.preventDefault(); |
||
11 | var $this = $(this); |
||
12 | var target = $this.data('target'); |
||
13 | var items = $('select.list[data-target="' + target + '"]').val(); |
||
14 | |||
15 | if (items.length) { |
||
16 | $this.children('i.glyphicon-refresh-animate').show(); |
||
17 | $.post($this.attr('href'), {items: items}, function (r) { |
||
18 | updateItems(r); |
||
19 | }).always(function () { |
||
20 | $this.children('i.glyphicon-refresh-animate').hide(); |
||
21 | }); |
||
22 | } |
||
23 | return false; |
||
24 | }); |
||
25 | |||
56 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.