diff --git a/services/web/public/coffee/pdf/CompiledView.coffee b/services/web/public/coffee/pdf/CompiledView.coffee index fceb9e3b7a..6b6478d520 100644 --- a/services/web/public/coffee/pdf/CompiledView.coffee +++ b/services/web/public/coffee/pdf/CompiledView.coffee @@ -215,7 +215,7 @@ define [ Backbone.View::undelegateEvents.apply(this, arguments) @pdfView.undelegateEvents() - setPdfPosition: (args...) -> - @pdfView.setPdfPosition?(args...) + highlightInPdf: (args...) -> + @pdfView.highlightInPdf?(args...) diff --git a/services/web/public/coffee/pdf/PDFjsView.coffee b/services/web/public/coffee/pdf/PDFjsView.coffee index 4747ea23fd..1c3fd0b3ef 100644 --- a/services/web/public/coffee/pdf/PDFjsView.coffee +++ b/services/web/public/coffee/pdf/PDFjsView.coffee @@ -2,16 +2,18 @@ define [ "libs/pdfListView/PdfListView" "libs/pdfListView/TextLayerBuilder" "libs/pdfListView/AnnotationsLayerBuilder" + "libs/pdfListView/HighlightsLayerBuilder" "text!libs/pdfListView/TextLayer.css" "text!libs/pdfListView/AnnotationsLayer.css" + "text!libs/pdfListView/HighlightsLayer.css" "libs/backbone" "libs/jquery.storage" -], (PDFListView, TextLayerBuilder, AnnotationsLayerBuilder, textLayerCss, annotationsLayerCss) -> +], (PDFListView, TextLayerBuilder, AnnotationsLayerBuilder, HighlightsLayerBuilder, textLayerCss, annotationsLayerCss, highlightsLayerCss) -> if PDFJS? PDFJS.workerSrc = "#{window.sharelatex.pdfJsWorkerPath}" style = $("