Commit e267409e by lduarte1991

Annotator Tools: Fixing annotator break in login and dashboard

parent a0b4f8b6
...@@ -141,7 +141,7 @@ Annotator.Plugin.Share = (function(_super) { ...@@ -141,7 +141,7 @@ Annotator.Plugin.Share = (function(_super) {
event.preventDefault(); // disable normal link function so that it doesn't refresh the page event.preventDefault(); // disable normal link function so that it doesn't refresh the page
annotation = share.getAnnotationFromId(event.currentTarget.attributes.annotationid); annotation = share.getAnnotationFromId(event.currentTarget.attributes.annotationid);
var _field = this; var _field = this;
var ovaId = annotation.id, var ovaId = annotation.id;
var title; var title;
if (method == 1) { if (method == 1) {
title = 'Share'; title = 'Share';
...@@ -221,7 +221,7 @@ Annotator.Plugin.Share = (function(_super) { ...@@ -221,7 +221,7 @@ Annotator.Plugin.Share = (function(_super) {
source=this.annotation.id; source=this.annotation.id;
} else {// method 2 } else {// method 2
var annotator = this.annotator; var annotator = this.annotator;
var editor = annotator.editor, var editor = annotator.editor;
var textarea = $(editor.element).find('textarea')[0]; var textarea = $(editor.element).find('textarea')[0];
if (source == 'ovaText') if (source == 'ovaText')
...@@ -258,7 +258,7 @@ Annotator.Plugin.Share = (function(_super) { ...@@ -258,7 +258,7 @@ Annotator.Plugin.Share = (function(_super) {
The first option is to give a known id of an annotation The first option is to give a known id of an annotation
Example http:// url.com/#id=rTcpOjIMT2aF1apDtboC-Q Example http:// url.com/#id=rTcpOjIMT2aF1apDtboC-Q
*/ */
var API = {}, var API = {};
var ovaId = this.getParameterByName('ovaId'); // Method 1 (Obligatory) var ovaId = this.getParameterByName('ovaId'); // Method 1 (Obligatory)
var start = this.getParameterByName('ovaStart'); // Method 2 (Obligatory) var start = this.getParameterByName('ovaStart'); // Method 2 (Obligatory)
var end = this.getParameterByName('ovaEnd'); // Method 2 (Obligatory) var end = this.getParameterByName('ovaEnd'); // Method 2 (Obligatory)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment