Skip to content

Commit

Permalink
fix feature ui name
Browse files Browse the repository at this point in the history
  • Loading branch information
remstef committed Jun 11, 2017
1 parent 07c2094 commit fcd6eec
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ private void createTranscriptLayer(Project aProject)
AnnotationFeature playbuttonSegmentLayerInfoFeature = new AnnotationFeature();
playbuttonSegmentLayerInfoFeature.setDescription("Anchor description.");
playbuttonSegmentLayerInfoFeature.setName("Info");
playbuttonSegmentLayerInfoFeature.setUiName("Info");
playbuttonSegmentLayerInfoFeature.setType(CAS.TYPE_NAME_STRING);
playbuttonSegmentLayerInfoFeature.setProject(aProject);
playbuttonSegmentLayerInfoFeature.setUiName("Info");
playbuttonSegmentLayerInfoFeature.setLayer(playbuttonSegmentLayer);
annotationService.createFeature(playbuttonSegmentLayerInfoFeature);

Expand All @@ -92,15 +92,15 @@ private void createTranscriptLayer(Project aProject)
playbuttonLayer.setReadonly(true);
playbuttonLayer.setMultipleTokens(false);
// playbuttonLayer.setZeroWidthOnly(true);
playbuttonLayer.setOnClickJavascriptAction("window.open('http://bing.com')");
playbuttonLayer.setOnClickJavascriptAction("window.open('partitur/${PID}/${DOCID}#${AnchorID}', 'partitur')");
annotationService.createLayer(playbuttonLayer);

AnnotationFeature playbuttonLayerInfoFeature = new AnnotationFeature();
playbuttonLayerInfoFeature.setDescription("Anchor description.");
playbuttonLayerInfoFeature.setName("Info");
playbuttonLayerInfoFeature.setUiName("Info");
playbuttonLayerInfoFeature.setType(CAS.TYPE_NAME_STRING);
playbuttonLayerInfoFeature.setProject(aProject);
playbuttonLayerInfoFeature.setUiName("window.open('partitur/${PID}/${DOCID}#${AnchorID}', 'partitur')");
playbuttonLayerInfoFeature.setLayer(playbuttonLayer);
annotationService.createFeature(playbuttonLayerInfoFeature);
/* END: add play buttons */
Expand Down

0 comments on commit fcd6eec

Please sign in to comment.