Commit 0c72c4f6 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

force-hide option for some elements

parent e3625ec2
......@@ -64,7 +64,8 @@ var SETTINGS = {
'files': {
'x3d':"",
'kml':""
}
},
'forcehide':[]
// 'kml' : "scene.kml"
}
......
......@@ -182,6 +182,8 @@ function save_rating_init(){
var value = parseInt(response.responseText);
if (isNaN(value)){
value = 5;
SETTINGS.forcehide.push("#model_rating_tr");
SETTINGS.forcehide.push("#kml_tr");
}
$("#model_rating").val(value);
// bind onchange
......@@ -232,6 +234,9 @@ function controls_showhide(){
$(".edit").hide();
}else{
$(".edit").show();
SETTINGS.forcehide.forEach(function(i,v){
$(v).hide();
});
align_position();
}
......
......@@ -165,7 +165,7 @@ Instructions:
<td title='Adjust initial location and orientation'>Edit mode</td>
<td><input id='edit' type='checkbox' class='my-check-box donothide' /></td>
</tr>
<tr class='edit'>
<tr class='edit' class='kml_tr'>
<td title='.kml:
* latitude and longitude,
* heading, tilt and roll angles
......@@ -180,7 +180,7 @@ Instructions:
<div id='kmlstatus'></div>
</td>
</tr>
<tr class='edit'>
<tr class='edit' id='model_rating_tr'>
<td>Model rating: </td>
<td><input id='model_rating' type='text' class='input donothide' value='0' /></td>
<td valign='middle'>
......
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