Commit cd6eca74 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

fixed force hiding

parent 0c72c4f6
...@@ -182,8 +182,9 @@ function save_rating_init(){ ...@@ -182,8 +182,9 @@ 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"); // add elements ids
SETTINGS.forcehide.push("#kml_tr"); SETTINGS.forcehide.push("model_rating_tr");
SETTINGS.forcehide.push("kml_tr");
} }
$("#model_rating").val(value); $("#model_rating").val(value);
// bind onchange // bind onchange
...@@ -234,8 +235,8 @@ function controls_showhide(){ ...@@ -234,8 +235,8 @@ function controls_showhide(){
$(".edit").hide(); $(".edit").hide();
}else{ }else{
$(".edit").show(); $(".edit").show();
SETTINGS.forcehide.forEach(function(i,v){ SETTINGS.forcehide.forEach(function(c,i){
$(v).hide(); $("#"+c).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' class='kml_tr'> <tr class='edit' id='kml_tr'>
<td title='.kml: <td title='.kml:
* latitude and longitude, * latitude and longitude,
* heading, tilt and roll angles * heading, tilt and roll angles
......
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