Completed
Push — master ( cb6324...c07bcf )
by Dimas
07:23
created

views/blogger/index.js   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 16
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 12
mnd 0
bc 0
fnc 2
dl 0
loc 16
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
1
var timerx;
2
$("#blog-set").on("change", function (e) {
3
  var url = $(this).val();
4
  clearTimeout(timerx);
5
  timerx = setTimeout(() => {
6
    $.ajax({
7
      url: location.href,
8
      method: "post",
9
      data: {
10
        "set-blog": url,
11
      },
12
    });
13
  }, 500);
14
});
15
16
smartform();
17