modified: SRC/public/js/ListeOeuvre.js

This commit is contained in:
Malibu 2015-02-24 12:19:17 +01:00
parent 95ff2cadcf
commit ecf963857b
1 changed files with 2 additions and 2 deletions

View File

@ -66,10 +66,10 @@ $('#search_button, #previous, #next').click(function(event) {
if (this.id == $('#next').attr('id')) {
str = $("#next").attr('href');
url = "/search?page="+/([0-9]+)/.exec(str)[0];
url = "/search?page="+/([0-9]+)/.exec(/page=([0-9]+)/.exec(str)[0])[0];
}else if (this.id == $('#previous').attr('id')) {
str = $("#previous").attr('href');
url = "/search?page="+/([0-9]+)/.exec(str)[0];
url = "/search?page="+/([0-9]+)/.exec(/page=([0-9]+)/.exec(str)[0])[0];
}else {
url = "/search";
}