Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
f83f6a5c
Commit
f83f6a5c
authored
Sep 11, 2015
by
Robert Lyon
Committed by
Gerrit Code Review
Sep 11, 2015
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Improve paginator accessibility (Bug #1492103)"
parents
683039a5
809555cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
htdocs/lib/web.php
htdocs/lib/web.php
+9
-5
No files found.
htdocs/lib/web.php
View file @
f83f6a5c
...
...
@@ -4020,7 +4020,7 @@ function build_pagination($params) {
}
if
(
$i
==
$page
)
{
$output
.
=
build_pagination_pagelink
(
'active'
,
$text
,
(
$i
+
1
)
,
true
);
$output
.
=
build_pagination_pagelink
(
'active'
,
$text
,
''
,
true
);
}
else
{
...
...
@@ -4028,7 +4028,7 @@ function build_pagination($params) {
$output
.
=
build_pagination_pagelink
(
''
,
$text
,
$i
+
1
,
''
,
false
,
$params
[
'url'
],
$params
[
'setlimit'
],
...
...
@@ -4141,14 +4141,18 @@ function build_pagination_pagelink($class, $text, $title, $disabled=false, $url=
$result
=
"<li class='
$class
'>"
;
if
(
!
empty
(
$title
))
{
$text
.
=
'<span class="sr-only">'
.
$title
.
'</span>'
;
}
if
(
$disabled
)
{
$result
.
=
'<span>
<span aria-hidden="true">
'
;
$result
.
=
'<span>'
;
$result
.
=
$text
;
$result
.
=
'</span>
</span>
'
;
$result
.
=
'</span>'
;
}
else
{
$result
.
=
'<a href="'
.
hsc
(
$url
)
.
'" title="'
.
$title
.
'">'
;
$result
.
=
$text
;
$result
.
=
'<
span class="sr-only">'
.
$title
.
'</span><
/a>'
;
$result
.
=
'</a>'
;
}
$result
.
=
'</li>'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment