* Merge randuin's changes
* Revert user/show changes * Move paginator js into separate file
This commit is contained in:
@@ -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')
|
||||
}
|
||||
}
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user