* Merge randuin's changes

* Revert user/show changes
* Move paginator js into separate file
This commit is contained in:
albert
2011-09-06 11:01:40 -04:00
parent c37766c4c1
commit 33fa8d30ee
5 changed files with 32 additions and 24 deletions

View File

@@ -8,20 +8,3 @@
//= require_self
//= require_tree .
(function() {
Danbooru.Paginator = {};
Danbooru.Paginator.next_page = function() {
if($('.paginator li span').parent().next().length != 0)
{
window.location = $('.paginator li span').parent().next().find('a').attr('href');
}
}
Danbooru.Paginator.prev_page = function() {
if($('.paginator li span').parent().prev().length != 0)
{
window.location = $('.paginator li span').parent().prev().find('a').attr('href');
console.log('logged')
}
}
})();