Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
18217b42
Commit
18217b42
authored
Mar 10, 2015
by
Son Nguyen
Committed by
Gerrit Code Review
Mar 10, 2015
Browse files
Merge "Configure the pdfjs javascript lib (Bug #1036556)"
parents
328fbe4a
8be3d301
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/file/blocktype/pdf/js/pdfjs/README.Mahara
View file @
18217b42
...
...
@@ -21,8 +21,3 @@ Changes:
* Minify js files for faster loading
* Change location of sample PDF file
* Remove "open file" button
* viewer.css additions to support viewing by non-JS users
* viewer.css tweak to get the bottom of the display to show
* viewer.css tweak to avoid horizontal scrollbar on default 3-column page layout
* Change viewer.js to get the PDF file from a JS variable instead of a URL query parameter
* Change viewer.js to use absolute URLs to JS libraries
htdocs/artefact/file/blocktype/pdf/js/pdfjs/web/viewer.js
View file @
18217b42
...
...
@@ -27,7 +27,8 @@
'
use strict
'
;
var
DEFAULT_URL
=
'
compressed.tracemonkey-pldi-09.pdf
'
;
var
DEFAULT_URL
=
wwwroot
+
'
/artefact/file/blocktype/pdf/js/pdfjs/web/sample.pdf
'
;
var
DEFAULT_SCALE
=
'
auto
'
;
var
DEFAULT_SCALE_DELTA
=
1.1
;
var
MIN_SCALE
=
0.25
;
var
MAX_SCALE
=
10.0
;
...
...
@@ -6398,8 +6399,8 @@ function webViewerInitialized() {
document
.
getElementById
(
'
presentationMode
'
).
addEventListener
(
'
click
'
,
SecondaryToolbar
.
presentationModeClick
.
bind
(
SecondaryToolbar
));
document
.
getElementById
(
'
openFile
'
).
addEventListener
(
'
click
'
,
SecondaryToolbar
.
openFileClick
.
bind
(
SecondaryToolbar
));
//
document.getElementById('openFile').addEventListener('click',
//
SecondaryToolbar.openFileClick.bind(SecondaryToolbar));
document
.
getElementById
(
'
print
'
).
addEventListener
(
'
click
'
,
SecondaryToolbar
.
printClick
.
bind
(
SecondaryToolbar
));
...
...
Write
Preview
Supports
Markdown
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