| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Lines | 15 |
| Ratio | 100 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | View Code Duplication | $('i.glyphicon-refresh-animate').hide(); |
|
| 9 | $('.btn-assign').click(function () { |
||
| 10 | var $this = $(this); |
||
| 11 | var target = $this.data('target'); |
||
| 12 | var items = $('select.list[data-target="' + target + '"]').val(); |
||
| 13 | |||
| 14 | if (items.length) { |
||
| 15 | $this.children('i.glyphicon-refresh-animate').show(); |
||
| 16 | $.post($this.attr('href'), {items: items}, function (r) { |
||
| 17 | updateItems(r); |
||
| 18 | }).always(function () { |
||
| 19 | $this.children('i.glyphicon-refresh-animate').hide(); |
||
| 20 | }); |
||
| 21 | } |
||
| 22 | return false; |
||
| 23 | }); |
||
| 24 | |||
| 54 |
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.