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
907cd505
Commit
907cd505
authored
Feb 27, 2013
by
Brian Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix viewing of pdfbook on firefox
parent
f8280490
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
32 deletions
+31
-32
lms/templates/static_pdfbook.html
+31
-32
No files found.
lms/templates/static_pdfbook.html
View file @
907cd505
...
...
@@ -90,41 +90,40 @@
</div>
</div>
%if 'chapters' in textbook:
<section
aria-label=
"Textbook Navigation"
class=
"book-sidebar"
>
<ul
id=
"booknav"
class=
"treeview-booknav"
>
<
%
def
name=
"print_entry(entry, index_value)"
>
<li
id=
"pdfchapter-${index_value}"
>
<a
class=
"chapter"
>
${entry.get('title')}
</a>
</li>
</
%
def>
%if 'chapters' in textbook:
<section
aria-label=
"Textbook Navigation"
class=
"book-sidebar"
>
<ul
id=
"booknav"
class=
"treeview-booknav"
>
<
%
def
name=
"print_entry(entry, index_value)"
>
<li
id=
"pdfchapter-${index_value}"
>
<a
class=
"chapter"
>
${entry.get('title')}
</a>
</li>
</
%
def>
% for (index, entry) in enumerate(textbook['chapters']):
${print_entry(entry, index+1)}
% endfor
</ul>
</section>
%endif
% for (index, entry) in enumerate(textbook['chapters']):
${print_entry(entry, index+1)}
% endfor
</ul>
</section>
%endif
<section
id=
"viewerContainer"
class=
"book"
>
<
!-- use same page-turning as used in image-based textbooks --
>
<nav
>
<
ul
>
<
li
class=
"last"
>
<
a
id=
"previous"
>
Previous page
</a
>
</li
>
<li
class=
"next"
>
<
a
id=
"next"
>
Next page
</a
>
</li
>
</ul
>
</nav
>
<div
id=
"viewer"
contextmenu=
"viewerContextMenu"
></div>
</div
>
<
section
class=
"page"
>
<!-- use same page-turning as used in image-based textbooks --
>
<
nav
>
<
ul
>
<
li
class=
"last"
>
<a
id=
"previous"
>
Previous page
</a
>
</li
>
<
li
class=
"next"
>
<a
id=
"next"
>
Next page
</a
>
</li
>
</ul
>
</nav>
<div
id=
"viewer"
contextmenu=
"viewerContextMenu"
></div>
</section
>
</section>
</div>
<!-- mainContainer -->
...
...
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