Commit 32040164 by lduarte1991

Annotation Tools: Clean-up

parent d649e208
...@@ -1123,16 +1123,9 @@ CatchAnnotation.prototype = { ...@@ -1123,16 +1123,9 @@ CatchAnnotation.prototype = {
// checks to make sure that Grouping is redone when switching tags in text annotations // checks to make sure that Grouping is redone when switching tags in text annotations
if (this.options.media === 'text') { if (this.options.media === 'text') {
if (this.current_tab ==='public') {
// this is to check if user is is MyNotes instead of the annotation component
if (typeof this.annotator.plugins.Grouping !== 'undefined') { if (typeof this.annotator.plugins.Grouping !== 'undefined') {
this.annotator.plugins.Grouping.useGrouping = 0;
}
} else {
// this is to check if user is is MyNotes instead of the annotation component // this is to check if user is is MyNotes instead of the annotation component
if (typeof this.annotator.plugins.Grouping !== 'undefined'){ this.annotator.plugins.Grouping.useGrouping = this.current_tab === 'public' ? 0 : 1;
this.annotator.plugins.Grouping.useGrouping = 1;
}
} }
this.annotator.publish("changedTabsInCatch"); this.annotator.publish("changedTabsInCatch");
} }
...@@ -1164,8 +1157,9 @@ CatchAnnotation.prototype = { ...@@ -1164,8 +1157,9 @@ CatchAnnotation.prototype = {
this.clean = true; this.clean = true;
// the following cannot run in notes for there are no highlights // the following cannot run in notes for there are no highlights
if($("#notesHolder").length === 0) if ($("#notesHolder").length === 0) {
this._clearAnnotator(); this._clearAnnotator();
}
var annotator = this.annotator; var annotator = this.annotator;
var loadFromSearch = annotator.plugins.Store.options.loadFromSearch; var loadFromSearch = annotator.plugins.Store.options.loadFromSearch;
......
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