This commit is contained in:
albert
2013-03-09 11:08:06 -05:00
parent f4dce831e8
commit 73edc3c86f
3 changed files with 10 additions and 17 deletions

View File

@@ -110,15 +110,15 @@
Danbooru.Post.nav_next();
e.preventDefault();
});
$(document).bind("keydown.s", function(e) {
Danbooru.Post.nav_scroll_down();
})
$(document).bind("keydown.w", function(e) {
Danbooru.Post.nav_scroll_up();
})
}
$(document).bind("keydown.s", function(e) {
Danbooru.Post.nav_scroll_down();
})
$(document).bind("keydown.w", function(e) {
Danbooru.Post.nav_scroll_up();
})
}
Danbooru.Post.initialize_links = function() {

View File

@@ -443,10 +443,6 @@ class User < ActiveRecord::Base
limit = 10 + (approved_count / 10) - (deleted_count / 4) - pending_count
end
if limit > 20
limit = 20
end
if limit < 0
limit = 0
end

View File

@@ -50,12 +50,9 @@ class UserPresenter
string = "base:10 + approved:(#{approved_count} / 10) - deleted:(#{deleted_count}) / 4 - pending:#{pending_count}"
end
if limit >= 20
limit = 20
string += " = capped:20"
elsif limit < 0
if limit < 0
limit = 0
string += " = capped:0"
string += " = 0"
else
string += " = #{limit}"
end