summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-08 17:05:50 +0300
committerAndrew Dolgov <[email protected]>2021-02-08 17:05:50 +0300
commitfc2e0bf67bb279b960fb50060b6a7b59f0e5afb2 (patch)
treee31a541349e1e735e1c329724ee1e7f2396bdb39
parentfa2ebcd0a25e6c350d7105753ca4f3e37cf7f464 (diff)
log viewer: disable previous page on page 1
-rw-r--r--classes/pref/system.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/pref/system.php b/classes/pref/system.php
index bc3bde16f..d91339698 100644
--- a/classes/pref/system.php
+++ b/classes/pref/system.php
@@ -69,7 +69,9 @@ class Pref_System extends Handler_Protected {
print "<button dojoType='dijit.form.Button'
onclick='Helpers.EventLog.refresh()'>".__('Refresh')."</button>";
- print "<button dojoType='dijit.form.Button'
+ $prev_page_disabled = $page <= 0 ? "disabled" : "";
+
+ print "<button dojoType='dijit.form.Button' $prev_page_disabled
onclick='Helpers.EventLog.prevPage()'>".__('&lt;&lt;')."</button>";
print "<button dojoType='dijit.form.Button' disabled>".T_sprintf('Page %d of %d', $page+1, $total_pages+1)."</button>";