Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-mod_pdfannotator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-mod_pdfannotator
Commits
eeaf0202
Commit
eeaf0202
authored
5 years ago
by
Friederike Schwager
Committed by
Friederike Schwager
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
bugfixes download: download PDF-Files with special char in name, don't print html-tags in comments
parent
13046e9b
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
lang/en/pdfannotator.php
+2
-2
2 additions, 2 deletions
lang/en/pdfannotator.php
shared/index.js
+5
-1
5 additions, 1 deletion
shared/index.js
with
7 additions
and
3 deletions
lang/en/pdfannotator.php
+
2
−
2
View file @
eeaf0202
...
@@ -317,8 +317,8 @@ $string['pdfannotator:forwardquestions'] = 'Forward questions';
...
@@ -317,8 +317,8 @@ $string['pdfannotator:forwardquestions'] = 'Forward questions';
$string
[
'pdfannotator:getforwardedquestions'
]
=
'Receive forwarded questions'
;
$string
[
'pdfannotator:getforwardedquestions'
]
=
'Receive forwarded questions'
;
$string
[
'pdfannotator:hidecomments'
]
=
'Hide comments for participants'
;
$string
[
'pdfannotator:hidecomments'
]
=
'Hide comments for participants'
;
$string
[
'pdfannotator:markcorrectanswer'
]
=
'Mark answers as correct'
;
$string
[
'pdfannotator:markcorrectanswer'
]
=
'Mark answers as correct'
;
$string
[
'pdfannotator:printcomments'
]
=
'Download the comments'
;
$string
[
'pdfannotator:printcomments'
]
=
'Download the comments
(even if the option is disabled for a PDF-Annotator)
'
;
$string
[
'pdfannotator:printdocument'
]
=
'Download the document'
;
$string
[
'pdfannotator:printdocument'
]
=
'Download the document
(even if the option is disabled for a PDF-Annotator)
'
;
$string
[
'pdfannotator:recievenewquestionnotifications'
]
=
'Recieve notifications about new questions'
;
$string
[
'pdfannotator:recievenewquestionnotifications'
]
=
'Recieve notifications about new questions'
;
$string
[
'pdfannotator:report'
]
=
'Report inappropriate comments to the course manager'
;
$string
[
'pdfannotator:report'
]
=
'Report inappropriate comments to the course manager'
;
$string
[
'pdfannotator:seehiddencomments'
]
=
'See hidden comments'
;
$string
[
'pdfannotator:seehiddencomments'
]
=
'See hidden comments'
;
...
...
This diff is collapsed.
Click to expand it.
shared/index.js
+
5
−
1
View file @
eeaf0202
...
@@ -702,6 +702,8 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting
...
@@ -702,6 +702,8 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting
function openDocumentCallback() {
function openDocumentCallback() {
var url = document.getElementById('myprinturl').innerHTML;
var url = document.getElementById('myprinturl').innerHTML;
url = url.replace(/%/g, "%25");
url = url.replace(/#/g, "%23");
location.href = url;
location.href = url;
}
}
}
}
...
@@ -827,6 +829,8 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting
...
@@ -827,6 +829,8 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting
// jsPDF needs \n-linebreaks so we replace <br \> with \n. But first we remove all \n that already exist.
// jsPDF needs \n-linebreaks so we replace <br \> with \n. But first we remove all \n that already exist.
text = text.replace(/\n/g, "");
text = text.replace(/\n/g, "");
text = text.replace(/<br \/>/g, "\n");
text = text.replace(/<br \/>/g, "\n");
// Remove all other HTML-Tags.
text = $("<div>").html(text).text();
if (author !== null) {
if (author !== null) {
printAuthor(author, timemodified);
printAuthor(author, timemodified);
}
}
...
@@ -6966,7 +6970,7 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting
...
@@ -6966,7 +6970,7 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting
exists = false;
exists = false;
}
}
//call this function to repeat in 5 secs
//call this function to repeat in 5 secs
setTimeout(loadNewAnnotations, 5000);
//
setTimeout(loadNewAnnotations, 5000);
}, function (err){
}, function (err){
notification.addNotification({
notification.addNotification({
message: M.util.get_string('error:getAnnotations', 'pdfannotator'),
message: M.util.get_string('error:getAnnotations', 'pdfannotator'),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment