Fix pagnation and try again with hash fix
Cette révision appartient à :
Parent
5497d6f196
révision
e987884416
2 fichiers modifiés avec 3 ajouts et 3 suppressions
|
@ -21,10 +21,10 @@
|
|||
|
||||
var maxId = 5;
|
||||
for (var i = 0; i < maxId; i++) {
|
||||
var el = document.getElementById('page-' + i), n = next + i;
|
||||
var el = document.getElementById('page-' + i), n = prev + i;
|
||||
el.href = pageString + n + query;
|
||||
el.innerHTML = n;
|
||||
}
|
||||
|
||||
document.getElementById('page-next').href = pageString + next + query;
|
||||
document.getElementById('page-prev').href = pageString + prev + query;
|
||||
document.getElementById('page-prev').href = pageString + prev + query;
|
||||
|
|
|
@ -128,7 +128,7 @@ func getAllCategories(populatedWithTorrents bool) []Categories {
|
|||
}
|
||||
|
||||
func (t *Torrents) toJson() TorrentsJson {
|
||||
magnet := "magnet:?xt=urn:btih:" + t.Hash + "&dn=" + t.Name + trackers
|
||||
magnet := "magnet:?xt=urn:btih:" + html.UnescapeString(t.Hash) + "&dn=" + t.Name + trackers
|
||||
res := TorrentsJson{
|
||||
Id: strconv.Itoa(t.Id),
|
||||
Name: html.UnescapeString(t.Name),
|
||||
|
|
Référencer dans un nouveau ticket