Total Complexity | 3 |
Complexity/F | 1.5 |
Lines of Code | 15 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | $('#clean_log').click(function(e) { |
||
2 | e.preventDefault(); |
||
3 | $.ajax({ |
||
4 | url: location.href, |
||
5 | method: 'DELETE', |
||
6 | headers: { |
||
7 | 'Log': 'php' |
||
8 | }, |
||
9 | complete: function(xhr, status) { |
||
10 | if (status == 'success') { |
||
11 | location.reload(); |
||
12 | } |
||
13 | } |
||
14 | }); |
||
15 | }); |