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
731f4abd
Commit
731f4abd
authored
Feb 21, 2013
by
Brian Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug with nav to a page, and add pdfviewer.css.
parent
1850528a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
common/static/css/pdfviewer.css
+0
-0
common/static/js/pdfviewer.js
+2
-2
lms/templates/static_pdfbook.html
+2
-2
No files found.
common/static/css/pdfviewer.css
0 → 100644
View file @
731f4abd
This diff is collapsed.
Click to expand it.
common/static/js/pdfviewer.js
View file @
731f4abd
...
...
@@ -30,7 +30,7 @@ PDFJS.disableWorker = true;
var
url
=
options
[
'url'
];
var
pageNum
=
1
;
if
(
options
.
pageNum
)
{
pageNum
=
int
(
options
.
pageNum
)
;
pageNum
=
options
.
pageNum
;
}
var
currentScale
=
1.0
;
var
currentScaleValue
=
"1"
;
...
...
@@ -178,7 +178,7 @@ PDFJS.disableWorker = true;
// Check to see if
selectScaleOption
=
function
(
value
)
{
var
options
=
$
(
'#scaleSelect
'
).
options
;
var
options
=
$
(
'#scaleSelect
options'
)
;
var
predefinedValueFound
=
false
;
for
(
var
i
=
0
;
i
<
options
.
length
;
i
++
)
{
var
option
=
options
[
i
];
...
...
lms/templates/static_pdfbook.html
View file @
731f4abd
...
...
@@ -9,7 +9,7 @@
<
%
block
name=
"headextra"
>
<
%
static:css
group=
'course'
/>
<
%
static:js
group=
'courseware'
/>
<link
rel=
"stylesheet"
href=
"/static/css/
vendor/pdfjs/my
viewer.css"
/>
<link
rel=
"stylesheet"
href=
"/static/css/
pdf
viewer.css"
/>
<script
type=
"text/javascript"
src=
"/static/js/vendor/pdfjs/pdf.js"
></script>
<script
type=
"text/javascript"
src=
"/static/js/pdfviewer.js"
></script>
</
%
block>
...
...
@@ -22,7 +22,7 @@
$
(
document
).
ready
(
function
()
{
$
(
'#outerContainer'
).
PDFViewer
(
{
%
if
page
is
not
None
:
'pageNum'
:
page
,
'pageNum'
:
$
{
page
}
,
%
endif
'url'
:
url
});
...
...
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