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

force-hide option for some elements

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