Commit cd6eca74 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

fixed force hiding

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