projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd29207
)
Fixed missing focus on first/last page.
author
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Tue, 4 Nov 2008 15:31:31 +0000
(15:31 +0000)
committer
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Tue, 4 Nov 2008 15:31:31 +0000
(15:31 +0000)
includes/db_pager.inc
patch
|
blob
|
history
diff --git
a/includes/db_pager.inc
b/includes/db_pager.inc
index ce739535acad64f41e7af8c0f4aa5db418429929..f00cc9060ea20e4c4c4e7e5e1af5b7227e47e282 100644
(file)
--- a/
includes/db_pager.inc
+++ b/
includes/db_pager.inc
@@
-300,6
+300,12
@@
class db_pager {
$sort = find_submit($this->name.'_sort_', false);
if ($page) {
$this->change_page($page);
+ if ($page == 'next' && !$this->next_page ||
+ $page == 'last' && !$this->last_page)
+ set_focus($this->name.'_page_prev');
+ if ($page == 'prev' && !$this->prev_page ||
+ $page == 'first' && !$this->first_page)
+ set_focus($this->name.'_page_next');
} elseif ($sort) {
$this->sort_table($sort);
} else