Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
32040164
Commit
32040164
authored
Sep 11, 2014
by
lduarte1991
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Annotation Tools: Clean-up
parent
d649e208
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
common/static/js/vendor/ova/catch/js/catch.js
+5
-11
No files found.
common/static/js/vendor/ova/catch/js/catch.js
View file @
32040164
...
...
@@ -1123,17 +1123,10 @@ CatchAnnotation.prototype = {
// checks to make sure that Grouping is redone when switching tags in text annotations
if
(
this
.
options
.
media
===
'text'
)
{
if
(
t
his
.
current_tab
===
'public
'
)
{
if
(
t
ypeof
this
.
annotator
.
plugins
.
Grouping
!==
'undefined
'
)
{
// 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
=
0
;
}
}
else
{
// 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
=
1
;
}
}
this
.
annotator
.
plugins
.
Grouping
.
useGrouping
=
this
.
current_tab
===
'public'
?
0
:
1
;
}
this
.
annotator
.
publish
(
"changedTabsInCatch"
);
}
// Change userid and refresh
...
...
@@ -1164,8 +1157,9 @@ CatchAnnotation.prototype = {
this
.
clean
=
true
;
// the following cannot run in notes for there are no highlights
if
(
$
(
"#notesHolder"
).
length
===
0
)
if
(
$
(
"#notesHolder"
).
length
===
0
)
{
this
.
_clearAnnotator
();
}
var
annotator
=
this
.
annotator
;
var
loadFromSearch
=
annotator
.
plugins
.
Store
.
options
.
loadFromSearch
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment