From cdd25c1712606a6b83626ac5a1caad961da56b14 Mon Sep 17 00:00:00 2001 From: akuma06 Date: Tue, 18 Jul 2017 21:55:40 +0200 Subject: [PATCH] Adding some comments --- public/js/kilo.js | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/public/js/kilo.js b/public/js/kilo.js index 3201f143..47d138e5 100644 --- a/public/js/kilo.js +++ b/public/js/kilo.js @@ -3,18 +3,28 @@ var Kilo = function (params) { var self = this // public variables + // Boolean defining if we are in sukebei this.sukebei = (params.sukebei !== undefined) ? params.sukebei : 0 + // Boolean defining if a user is trusted this.userTrusted = (params.userTrusted !== undefined) ? params.userTrusted : false + // Boolean defining if a user is logged this.isMember = (params.isMember !== undefined) ? params.isMember : false + // Boolean enabling the AJAX load of torrents this.listContext = (params.listContext !== undefined) ? params.listContext : false + // Variable defining the