Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
59c5baeb
Commit
59c5baeb
authored
Sep 19, 2013
by
Usman Khalid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disables the previous/next arrows on pdf books on the first/last pages respectively
parent
01a42925
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
common/static/js/pdfviewer.js
+6
-0
lms/static/sass/course/_textbook.scss
+4
-4
No files found.
common/static/js/pdfviewer.js
View file @
59c5baeb
...
...
@@ -200,6 +200,12 @@ PDFJS.disableWorker = true;
document
.
getElementById
(
'numPages'
).
textContent
=
'of '
+
pdfDocument
.
numPages
;
$
(
"#pageNumber"
).
max
=
pdfDocument
.
numPages
;
$
(
"#pageNumber"
).
val
(
pageNum
);
// Enable/disable the previous/next buttons
if
(
pageNum
>
1
)
$
(
"#previous"
).
addClass
(
"enabled"
);
else
$
(
"#previous"
).
removeClass
(
"enabled"
);
if
(
pageNum
<
pdfDocument
.
numPages
)
$
(
"#next"
).
addClass
(
"enabled"
);
else
$
(
"#next"
).
removeClass
(
"enabled"
);
}
// Go to previous page
...
...
lms/static/sass/course/_textbook.scss
View file @
59c5baeb
...
...
@@ -160,11 +160,11 @@ div.book-wrapper {
@include
transition
(
none
);
vertical-align
:
middle
;
width
:
100%
;
}
&
:hover
{
opacity
:
1
.0
;
filter
:
alpha
(
opacity
=
100
);
}
a
.enabled
:hover
{
opacity
:
1
.0
;
filter
:
alpha
(
opacity
=
100
);
}
&
.last
{
...
...
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