Passed
Push — master ( e95921...ddbd1b )
by Dimas
13:28 queued 05:15
created

etc/superuser/php/index.js   A

Complexity

Total Complexity 3
Complexity/F 1.5

Size

Lines of Code 15
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 10
c 0
b 0
f 0
dl 0
loc 15
rs 10
wmc 3
mnd 1
bc 1
fnc 2
bpm 0.5
cpm 1.5
noi 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
});