Commit cd6eca74 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev
Browse files

fixed force hiding

parent 0c72c4f6
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -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();
    }
+1 −1
Original line number Diff line number Diff line
@@ -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