Completed
Push — master ( dce25d...9db7be )
by Dimas
09:29 queued 12s
created

etc/server/comments/index.js   A

Complexity

Total Complexity 3
Complexity/F 1

Size

Lines of Code 13
Function Count 3

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 13
c 0
b 0
f 0
rs 10
wmc 3
mnd 0
bc 0
fnc 3
bpm 0
cpm 1
noi 0
1
$(".comment-container").click(function () {
2
  $(this).addClass("toggled");
3
4
  $(document).click(function () {
5
    $(".comment-container").removeClass("toggled");
6
  });
7
8
  $(".comment-container").click(function (e) {
9
    e.stopPropagation();
10
  });
11
12
  $(this).find("textarea").focus();
13
});
14