summaryrefslogtreecommitdiffstats
path: root/apps/samples/vrml/annotations.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/samples/vrml/annotations.js')
-rw-r--r--apps/samples/vrml/annotations.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/samples/vrml/annotations.js b/apps/samples/vrml/annotations.js
index ca9bf0a..b91ccfa 100644
--- a/apps/samples/vrml/annotations.js
+++ b/apps/samples/vrml/annotations.js
@@ -34,13 +34,11 @@ function Annotations(element, params) {
var pose = dojo.clone(self.vrmlViewer.pose);
var imageURL = self.vrmlViewer.imageURL;
var annoLink = document.createElement("a");
- annoLink.setAttribute("href", "#");
var annoText = document.createTextNode(text + "\n");
+ annoLink.setAttribute("href", "#");
annoLink.appendChild(annoText);
annoLink.onclick = function() {
- self.vrmlViewer.pose = pose;
- self.vrmlViewer.imageURL = imageURL;
- self.vrmlViewer.updateScene();
+ self.vrmlViewer.setPose(imageURL, pose);
}
this.messagesElem.appendChild(annoLink);
}