Commit 653c07d1 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

kml restored message

parent f4bfab1e
...@@ -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(500).fadeOut(250); $("#kmlstatus").show(0).delay(1000).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";
...@@ -111,4 +111,11 @@ function postKmlData(filename, xml) { ...@@ -111,4 +111,11 @@ 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
...@@ -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();
} }
}); });
......
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