diff options
author | Nihad Abbasov <narkoz.2008@gmail.com> | 2011-11-15 12:34:30 +0400 |
---|---|---|
committer | Nihad Abbasov <narkoz.2008@gmail.com> | 2011-11-15 12:34:30 +0400 |
commit | 368deb5992f27fce9a23629229af4367ba38f901 (patch) | |
tree | c76ca9922a8b789924032cfef63e7e52544add5d /app/assets/javascripts/commits.js | |
parent | 415eddaf39d7e1ffc4bf009d43a273614224909b (diff) | |
download | gitlab-ce-368deb5992f27fce9a23629229af4367ba38f901.tar.gz |
clean up whitespace from project
Diffstat (limited to 'app/assets/javascripts/commits.js')
-rw-r--r-- | app/assets/javascripts/commits.js | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/app/assets/javascripts/commits.js b/app/assets/javascripts/commits.js index bef7ed74bee..6e5b2102a68 100644 --- a/app/assets/javascripts/commits.js +++ b/app/assets/javascripts/commits.js @@ -8,25 +8,23 @@ $(document).ready(function(){ }); }); - - -var CommitsList = { +var CommitsList = { ref:null, limit:0, offset:0, -init: - function(ref, limit) { - this.ref=ref; - this.limit=limit; - this.offset=limit; +init: + function(ref, limit) { + this.ref=ref; + this.limit=limit; + this.offset=limit; this.initLoadMore(); $('.loading').show(); }, getOld: - function() { + function() { $('.loading').show(); $.ajax({ type: "GET", @@ -39,14 +37,14 @@ getOld: append: function(count, html) { $("#commits_list").append(html); - if(count > 0) { + if(count > 0) { this.offset += count; this.initLoadMore(); - } + } }, initLoadMore: - function() { + function() { $(window).bind('scroll', function(){ if($(window).scrollTop() == $(document).height() - $(window).height()){ $(window).unbind('scroll'); |