Commit 45650e58 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

+check box in marker info

parent 046f0d0a
...@@ -1365,6 +1365,7 @@ X3DOMObject.displayMarkInfo = function(index){ ...@@ -1365,6 +1365,7 @@ X3DOMObject.displayMarkInfo = function(index){
' <td><input type=\'text\' id=\'marker_x\' index='+index+' class=\'marker_coordinates\'/></td>', ' <td><input type=\'text\' id=\'marker_x\' index='+index+' class=\'marker_coordinates\'/></td>',
' <td><input type=\'text\' id=\'marker_y\' index='+index+' class=\'marker_coordinates\'/></td>', ' <td><input type=\'text\' id=\'marker_y\' index='+index+' class=\'marker_coordinates\'/></td>',
' <td><input type=\'text\' id=\'marker_z\' index='+index+' class=\'marker_coordinates\'/></td>', ' <td><input type=\'text\' id=\'marker_z\' index='+index+' class=\'marker_coordinates\'/></td>',
' <td><input type=\'checkbox\' index='+index+' id=\'rf_switcher\' title=\'switch between global and model coordinates\'/></td>',
' </tr>', ' </tr>',
' </table>', ' </table>',
' </td>', ' </td>',
...@@ -1398,6 +1399,19 @@ X3DOMObject.displayMarkInfo = function(index){ ...@@ -1398,6 +1399,19 @@ X3DOMObject.displayMarkInfo = function(index){
ui_showMessage("window-markinfo",msg); ui_showMessage("window-markinfo",msg);
} }
if (SETTINGS.global_coordinates){
$("#rf_switcher").prop("checked",true);
}
$("#rf_switcher").on('change',function(){
//$("#global_coordinates").prop("checked",$(this).prop("checked"));
$("#global_coordinates").click();
X3DOMObject.displayMarkInfo($(this).attr("index"));
});
// enable input fields here // enable input fields here
$(".marker_coordinates").each(function(){ $(".marker_coordinates").each(function(){
......
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