chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
04909b0
)
journal: make buttons bigger in browse.html
author
Lennart Poettering
<lennart@poettering.net>
Wed, 10 Oct 2012 23:52:35 +0000
(
01:52
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 10 Oct 2012 23:52:35 +0000
(
01:52
+0200)
src/journal/browse.html
patch
|
blob
|
history
diff --git
a/src/journal/browse.html
b/src/journal/browse.html
index a49dcf243ed91277d8cc89db74e2f5a8c4d34cec..65328206688f9b6e08243dfa73824073e2e79bdb 100644
(file)
--- a/
src/journal/browse.html
+++ b/
src/journal/browse.html
@@
-90,7
+90,7
@@
text-align: center;
}
input {
text-align: center;
}
input {
- font-size: 1
0
pt;
+ font-size: 1
8
pt;
font-weight: bold;
}
</style>
font-weight: bold;
}
</style>
@@
-115,13
+115,13
@@
<div id="diventry"><table id="tableentry"></table></div>
<form>
<div id="diventry"><table id="tableentry"></table></div>
<form>
- <input id="head" type="button" value="
|<" onclick="entriesLoadHead();
"/>
- <input id="previous" type="button" value="&
lt;<" onclick="entriesLoadPrevious();
"/>
- <input id="next" type="button" value="&
gt;>" onclick="entriesLoadNext();
"/>
- <input id="tail" type="button" value="&
gt;|" onclick="entriesLoadTail();
"/>
+ <input id="head" type="button" value="
⇤" onclick="entriesLoadHead();" title="First Page
"/>
+ <input id="previous" type="button" value="&
#8592;" onclick="entriesLoadPrevious();" title="Previous Page
"/>
+ <input id="next" type="button" value="&
#8594;" onclick="entriesLoadNext();" title="Next Page
"/>
+ <input id="tail" type="button" value="&
#8677;" onclick="entriesLoadTail();" title="Last Page
"/>
- <input id="more" type="button" value="
More" onclick="entriesMore();
"/>
- <input id="less" type="button" value="
Less" onclick="entriesLess();
"/>
+ <input id="more" type="button" value="
+" onclick="entriesMore();" title="More Entries
"/>
+ <input id="less" type="button" value="
-" onclick="entriesLess();" title="Fewer Entries
"/>
</form>
<div id="keynav">
</form>
<div id="keynav">
@@
-139,7
+139,7
@@
function getNEntries() {
var n;
function getNEntries() {
var n;
- n = localStorage["n_entries"];
+ n =
window.
localStorage["n_entries"];
if (n == null)
return 50;
n = parseInt(n);
if (n == null)
return 50;
n = parseInt(n);
@@
-156,7
+156,11
@@
}
function setNEntries(n) {
}
function setNEntries(n) {
- localStorage["n_entries"] = n.toString();
+ if (n < 10)
+ return 10;
+ if (n > 1000)
+ return 1000;
+ window.localStorage["n_entries"] = n.toString();
showNEntries(n);
}
showNEntries(n);
}
@@
-217,7
+221,7
@@
function entriesLoad(range) {
if (range == null)
function entriesLoad(range) {
if (range == null)
- range =
localStorage["cursor"]
;
+ range =
window.localStorage["cursor"] + ":0"
;
if (range == null)
range = "";
if (range == null)
range = "";
@@
-333,7
+337,7
@@
if (fc != null) {
first_cursor = fc;
if (fc != null) {
first_cursor = fc;
- localStorage["cursor"] = fc;
+
window.
localStorage["cursor"] = fc;
}
if (lc != null)
last_cursor = lc;
}
if (lc != null)
last_cursor = lc;