Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Memorekall Member New
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rekall
Memorekall Member New
Commits
0fbfb2c6
Commit
0fbfb2c6
authored
Apr 27, 2022
by
Loïs Poujade
Browse files
Options
Downloads
Patches
Plain Diff
Properly close markerjs area.
parent
6f0d4f13
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!93
Edit annotation picture
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
capsule-prototype/css/popup.css
+2
-0
2 additions, 0 deletions
capsule-prototype/css/popup.css
capsule-prototype/js/online-script.js
+15
-15
15 additions, 15 deletions
capsule-prototype/js/online-script.js
with
17 additions
and
15 deletions
capsule-prototype/css/popup.css
+
2
−
0
View file @
0fbfb2c6
...
...
@@ -689,6 +689,8 @@ color: rgba(255,255,255,.75); /*#FFF; */
#edit_pic_modal
{
z-index
:
10000001
;
background-color
:
transparent
;
box-shadow
:
none
;
}
#edit_pic_modal
img
{
...
...
This diff is collapsed.
Click to expand it.
capsule-prototype/js/online-script.js
+
15
−
15
View file @
0fbfb2c6
...
...
@@ -555,16 +555,14 @@ function setEditionControls() {
markerArea
.
targetRoot
=
document
.
getElementById
(
'
edit_pic_modal
'
);
markerArea
.
addEventListener
(
'
render
'
,
()
=>
{
var
state
=
markerArea
.
getState
();
var
data
=
btoa
(
JSON
.
stringify
(
state
))
;
window
.
my_current_markerjs_data_in_ugly_global
=
state
;
markerArea
.
close
(
true
);
setMetaFromDom
(
keyDoc
.
value
,
"
Rekall->MarkerjsState
"
,
data
);
// $('#edit_pic_modal').hide();
});
markerArea
.
addEventListener
(
'
close
'
,
()
=>
{
$
(
'
#edit_pic_modal
'
).
hide
();
setMetaFromDom
(
keyDoc
.
value
,
"
Rekall->MarkerjsState
"
,
btoa
(
JSON
.
stringify
(
state
)));
});
markerArea
.
addEventListener
(
'
close
'
,
()
=>
$
(
'
#edit_pic_modal
'
).
hide
());
markerArea
.
show
();
if
(
window
.
my_current_markerjs_data_in_ugly_global
)
markerArea
.
restoreState
(
JSON
.
parse
(
window
.
my_current_markerjs_data_in_ugly_global
));
if
(
window
.
my_current_markerjs_data_in_ugly_global
)
markerArea
.
restoreState
(
window
.
my_current_markerjs_data_in_ugly_global
);
})
}
...
...
@@ -972,8 +970,6 @@ function fillPopupEdit(tag) {
if
(
tag
.
isMarker
()
==
true
){
$
(
"
#popupImg
"
).
show
();
$
(
"
#popupImg
"
).
attr
(
"
src
"
,
"
../shared/css/images/img-note.png
"
);
$
(
"
#popupImg
"
).
unbind
(
"
click
"
);
}
else
{
if
(
tag
.
thumbnail
.
url
){
$
(
"
#popupImg
"
).
attr
(
"
src
"
,
tag
.
thumbnail
.
url
);
...
...
@@ -988,7 +984,6 @@ function fillPopupEdit(tag) {
else
if
(
type
.
indexOf
(
"
link
"
)
>
-
1
)
$
(
"
#popupImg
"
).
attr
(
"
src
"
,
"
../shared/css/images/img-link.png
"
)
else
$
(
"
#popupImg
"
).
attr
(
"
src
"
,
"
../shared/css/images/img-document.png
"
);
}
$
(
"
#popupImg
"
).
unbind
(
"
click
"
);
$
(
"
#popupImg
"
).
click
(
function
(
event
){
event
.
stopPropagation
();
if
(
tag
.
isLink
())
{
...
...
@@ -999,17 +994,22 @@ function fillPopupEdit(tag) {
tag
.
openBrowser
();
});
}
$
(
"
#popupImg
"
).
unbind
(
"
click
"
);
$
(
"
#popupNom
"
).
css
(
"
color
"
,
tag
.
color
);
window
.
my_current_markerjs_data_in_ugly_global
=
null
;
if
(
type
.
split
(
'
/
'
)[
0
]
==
'
image
'
)
{
$
(
'
#editAnnotationPic
'
).
html
(
'
edit
'
);
var
data
=
tag
.
getMetadata
(
'
Rekall->MarkerjsState
'
);
if
(
data
)
window
.
my_current_markerjs_data_in_ugly_global
=
atob
(
data
);
else
window
.
my_current_markerjs_data_in_ugly_global
=
null
;
console
.
log
(
'
put
'
+
window
.
my_current_markerjs_data_in_ugly_global
);
}
else
window
.
my_current_markerjs_data_in_ugly_global
=
null
;
if
(
data
)
{
var
_data
=
JSON
.
parse
(
atob
(
data
));
window
.
my_current_markerjs_data_in_ugly_global
=
_data
;
// var _mjs = new mjslive.MarkerView(document.getElementById('popupImg'));
// _mjs.targetRoot = document.getElementById('popupImg').parentElement;
// _mjs.show(_data);
}
}
$
(
"
#popupType
"
).
html
(
type
).
css
(
"
color
"
,
tag
.
color
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment