Change previous button text

pull/76/head
Gaël Berthaud-Müller 4 years ago
parent 5fe6ff9ef1
commit 7ca49fbffc

@ -10,7 +10,7 @@
display: none; display: none;
} }
h2, h2,
h3, h3,
h4, h4,
@ -110,7 +110,7 @@
><i class="fas fa-envelope-open"></i ><i class="fas fa-envelope-open"></i
></a> ></a>
{{ end }} {{ end }}
{{if isDateNull .BookmarkDate }} {{if isDateNull .BookmarkDate }}
<a <a
class="button button" class="button button"
@ -125,9 +125,9 @@
onclick="changeBookmarkStatus('{{.ID}}',false)" onclick="changeBookmarkStatus('{{.ID}}',false)"
><i class="fas fa-bookmark"></i ><i class="fas fa-bookmark"></i
></a> ></a>
{{ end }} {{ end }}
{{if .DownloadPath}} {{if .DownloadPath}}
<a <a
class="button" class="button"
@ -142,7 +142,7 @@
title="Delete Podcast Episode File" title="Delete Podcast Episode File"
><i class="fas fa-trash"></i ><i class="fas fa-trash"></i
></a> ></a>
{{else}} {{if not $setting.AutoDownload}} {{else}} {{if not $setting.AutoDownload}}
<a <a
@ -199,17 +199,17 @@
<a <a
href="?page={{.previousPage}}" href="?page={{.previousPage}}"
class="button" class="button"
>Last</a >Previous</a
> >
{{end}} {{end}}
<select name="page" id="pageDdl"> <select name="page" id="pageDdl">
{{ $page:=.page }} {{ $page:=.page }}
{{range $y := intRange 1 .totalPages}} {{range $y := intRange 1 .totalPages}}
<option {{if eq $page $y }} selected="selected" {{end}}}>{{$y}}</option> <option {{if eq $page $y }} selected="selected" {{end}}}>{{$y}}</option>
{{end}} {{end}}
</select> </select>
{{if .nextPage }} {{if .nextPage }}
<a <a
href="?page={{.nextPage}}" href="?page={{.nextPage}}"
@ -218,7 +218,7 @@
> >
{{end}} {{end}}
{{if gt .totalPages .page }} {{if gt .totalPages .page }}
<a <a
href="?page={{.totalPages}}" href="?page={{.totalPages}}"
class="button" class="button"
@ -349,10 +349,10 @@
return; return;
} }
var queryParams = new URLSearchParams(window.location.search); var queryParams = new URLSearchParams(window.location.search);
// Set new or modify existing parameter value. // Set new or modify existing parameter value.
queryParams.set("page", this.value); queryParams.set("page", this.value);
window.top.location= window.top.location.origin+window.top.location.pathname+"?"+queryParams.toString(); window.top.location= window.top.location.origin+window.top.location.pathname+"?"+queryParams.toString();
}); });
</script> </script>

Loading…
Cancel
Save