Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x3domlet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
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
Elphel
x3domlet
Commits
653c07d1
Commit
653c07d1
authored
Jul 14, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kml restored message
parent
f4bfab1e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
kml.js
js/kml.js
+8
-1
ui_init.js
js/ui_init.js
+2
-0
No files found.
js/kml.js
View file @
653c07d1
...
@@ -98,7 +98,7 @@ function postKmlData(filename, xml) {
...
@@ -98,7 +98,7 @@ function postKmlData(filename, xml) {
if
(
res
==
0
){
if
(
res
==
0
){
console
.
log
(
"test!"
);
console
.
log
(
"test!"
);
$
(
"#kmlstatus"
).
css
({
color
:
"rgba(70,200,70,1)"
}).
html
(
"saved"
);
$
(
"#kmlstatus"
).
css
({
color
:
"rgba(70,200,70,1)"
}).
html
(
"saved"
);
$
(
"#kmlstatus"
).
show
(
0
).
delay
(
5
00
).
fadeOut
(
250
);
$
(
"#kmlstatus"
).
show
(
0
).
delay
(
10
00
).
fadeOut
(
250
);
}
else
{
}
else
{
var
msg
=
"some error"
;
var
msg
=
"some error"
;
if
((
res
==-
1
)
||
(
res
==-
2
))
msg
=
"file does not exist"
;
if
((
res
==-
1
)
||
(
res
==-
2
))
msg
=
"file does not exist"
;
...
@@ -112,3 +112,10 @@ function postKmlData(filename, xml) {
...
@@ -112,3 +112,10 @@ function postKmlData(filename, xml) {
contentType
:
"text/xml; charset=
\"
utf-8
\"
"
contentType
:
"text/xml; charset=
\"
utf-8
\"
"
});
});
}
}
function
reportKmlReloaded
(){
$
(
"#kmlstatus"
).
css
({
color
:
"rgba(70,200,70,1)"
}).
html
(
"kml restored from server"
);
$
(
"#kmlstatus"
).
show
(
0
).
delay
(
1000
).
fadeOut
(
250
);
}
\ No newline at end of file
js/ui_init.js
View file @
653c07d1
...
@@ -274,6 +274,8 @@ function reset_to_initial_position(){
...
@@ -274,6 +274,8 @@ function reset_to_initial_position(){
//x3d_mouseMove();
//x3d_mouseMove();
Scene
.
resize
();
Scene
.
resize
();
reportKmlReloaded
();
}
}
});
});
...
...
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