Skip to content

Commit 069256e

Browse files
committed
If you know the id of a note, you can jump to it.
1 parent 8c886eb commit 069256e

File tree

1 file changed

+5
-0
lines changed
  • public/javascripts/DV/controllers

1 file changed

+5
-0
lines changed

public/javascripts/DV/controllers/api.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@ DV.Api.prototype = {
196196
getAnnotation : function(aid) {
197197
return this.viewer.models.annotations.getAnnotation(aid);
198198
},
199+
200+
setCurrentAnnotation: function(aid) {
201+
var noteModel = this.viewer.models.annotations.getAnnotation(aid);
202+
this.viewer.pageSet.showAnnotation(noteModel);
203+
},
199204

200205
// Add a new annotation to the document, prefilled to any extent.
201206
addAnnotation : function(anno) {

0 commit comments

Comments
 (0)