Skip to content

Commit

Permalink
fix PdfBlock: always reload after store
Browse files Browse the repository at this point in the history
  • Loading branch information
rlucke committed Mar 12, 2018
1 parent b805c74 commit 8baafd9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion assets/static/courseware.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/static/courseware.js.map

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions blocks/PdfBlock/js/author_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,7 @@ export default AuthorView.extend({
function () {
$(event.target).addClass('accept');
$view.switchBack();
// reload if PDFJS has not been loaded jet
if (typeof PDFJS === 'undefined') {
helper.reload();
}
helper.reload();
},
// error
function (error) {
Expand Down

0 comments on commit 8baafd9

Please sign in to comment.