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
f33c5754
Commit
f33c5754
authored
Feb 27, 2013
by
Victor Shnayder
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1565 from MITx/fix/brian/pdfchapter_ff
fix viewing of pdfbook on firefox
parents
85432353
907cd505
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 @
f33c5754
...
@@ -90,41 +90,40 @@
...
@@ -90,41 +90,40 @@
</div>
</div>
</div>
</div>
%if 'chapters' in textbook:
%if 'chapters' in textbook:
<section
aria-label=
"Textbook Navigation"
class=
"book-sidebar"
>
<section
aria-label=
"Textbook Navigation"
class=
"book-sidebar"
>
<ul
id=
"booknav"
class=
"treeview-booknav"
>
<ul
id=
"booknav"
class=
"treeview-booknav"
>
<
%
def
name=
"print_entry(entry, index_value)"
>
<
%
def
name=
"print_entry(entry, index_value)"
>
<li
id=
"pdfchapter-${index_value}"
>
<li
id=
"pdfchapter-${index_value}"
>
<a
class=
"chapter"
>
<a
class=
"chapter"
>
${entry.get('title')}
${entry.get('title')}
</a>
</a>
</li>
</li>
</
%
def>
</
%
def>
% for (index, entry) in enumerate(textbook['chapters']):
% for (index, entry) in enumerate(textbook['chapters']):
${print_entry(entry, index+1)}
${print_entry(entry, index+1)}
% endfor
% endfor
</ul>
</ul>
</section>
</section>
%endif
%endif
<section
id=
"viewerContainer"
class=
"book"
>
<section
id=
"viewerContainer"
class=
"book"
>
<
!-- use same page-turning as used in image-based textbooks --
>
<
section
class=
"page"
>
<nav
>
<!-- use same page-turning as used in image-based textbooks --
>
<
ul
>
<
nav
>
<
li
class=
"last"
>
<
ul
>
<
a
id=
"previous"
>
Previous page
</a
>
<
li
class=
"last"
>
</li
>
<a
id=
"previous"
>
Previous page
</a
>
<li
class=
"next"
>
</li
>
<
a
id=
"next"
>
Next page
</a
>
<
li
class=
"next"
>
</li
>
<a
id=
"next"
>
Next page
</a
>
</ul
>
</li
>
</nav
>
</ul
>
</nav>
<div
id=
"viewer"
contextmenu=
"viewerContextMenu"
></div>
<div
id=
"viewer"
contextmenu=
"viewerContextMenu"
></div>
</div
>
</section
>
</section>
</div>
<!-- mainContainer -->
</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