|
@@ -310,7 +310,7 @@ function renderValues (global_var, global_container) {
|
|
|
ret += '<tr>';
|
|
|
if (global_var.type == Types.REAL) {
|
|
|
for (var k = 0; k < global_var.columns; k++) {
|
|
|
- ret += '<td><span class="span_value_variable vector_var" data-index="'+k+'">'+global_var.value[k].toFixed(1)+'</span></td>';
|
|
|
+ ret += '<td><span class="span_value_variable vector_var" data-index="'+k+'">'+parseFloat(global_var.value[k]).toFixed(1)+'</span></td>';
|
|
|
}
|
|
|
} else {
|
|
|
for (var k = 0; k < global_var.columns; k++) {
|
|
@@ -334,7 +334,7 @@ function renderValues (global_var, global_container) {
|
|
|
for (var l = 0; l < global_var.rows; l++) {
|
|
|
ret += '<tr>';
|
|
|
for (var k = 0; k < global_var.columns; k++) {
|
|
|
- ret += '<td><span class="span_value_variable matrix_var" data-index="'+k+'" data-row="'+l+'">'+global_var.value[l][k].toFixed(1)+'</span>'+'</td>';
|
|
|
+ ret += '<td><span class="span_value_variable matrix_var" data-index="'+k+'" data-row="'+l+'">'+parseFloat(global_var.value[l][k]).toFixed(1)+'</span>'+'</td>';
|
|
|
}
|
|
|
ret += '</tr>';
|
|
|
}
|
|
@@ -621,7 +621,7 @@ function enableGlobalMatrixValueUpdate (global_var, row, index, parent_node) {
|
|
|
|
|
|
if (global_var.type == Types.REAL) {
|
|
|
input_field = $( "<input type='text' class='width-dynamic input_name_function' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' value='"
|
|
|
- + global_var.value[row][index].toFixed(1) + "' />" );
|
|
|
+ + parseFloat(global_var.value[row][index]).toFixed(1) + "' />" );
|
|
|
input_field.insertBefore(parent_node.find('.span_value_variable'));
|
|
|
} else {
|
|
|
input_field = $( "<input type='text' class='width-dynamic input_name_function' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' value='"
|
|
@@ -649,7 +649,7 @@ function enableGlobalMatrixValueUpdate (global_var, row, index, parent_node) {
|
|
|
if (global_var.type == Types.REAL) {
|
|
|
global_var.value[row][index] = parseFloat(input_field.val().trim());
|
|
|
|
|
|
- parent_node.find('.span_value_variable').text(global_var.value[row][index].toFixed(1));
|
|
|
+ parent_node.find('.span_value_variable').text(parseFloat(global_var.value[row][index]).toFixed(1));
|
|
|
} else {
|
|
|
if (global_var.type == Types.INTEGER) {
|
|
|
global_var.value[row][index] = parseInt(input_field.val().trim());
|
|
@@ -685,7 +685,7 @@ function enableGlobalMatrixValueUpdate (global_var, row, index, parent_node) {
|
|
|
if (global_var.type == Types.REAL) {
|
|
|
global_var.value[row][index] = parseFloat(input_field.val().trim());
|
|
|
|
|
|
- parent_node.find('.span_value_variable').text(global_var.value[row][index].toFixed(1));
|
|
|
+ parent_node.find('.span_value_variable').text(parseFloat(global_var.value[row][index]).toFixed(1));
|
|
|
} else {
|
|
|
if (global_var.type == Types.INTEGER) {
|
|
|
global_var.value[row][index] = parseInt(input_field.val().trim());
|
|
@@ -697,7 +697,7 @@ function enableGlobalMatrixValueUpdate (global_var, row, index, parent_node) {
|
|
|
registerUserEvent(global_var.name, ActionTypes.CHANGE_GLOBAL_VALUE, global_var.value);
|
|
|
} else {
|
|
|
if (global_var.type == Types.REAL) {
|
|
|
- parent_node.find('.span_value_variable').text(global_var.value[row][index].toFixed(1));
|
|
|
+ parent_node.find('.span_value_variable').text(parseFloat(global_var.value[row][index]).toFixed(1));
|
|
|
} else {
|
|
|
parent_node.find('.span_value_variable').text(global_var.value[row][index]);
|
|
|
}
|
|
@@ -716,7 +716,7 @@ function enableGlobalMatrixValueUpdate (global_var, row, index, parent_node) {
|
|
|
}
|
|
|
if(code == 27) {
|
|
|
if (global_var.type == Types.REAL) {
|
|
|
- parent_node.find('.span_value_variable').text(global_var.value[row][index].toFixed(1));
|
|
|
+ parent_node.find('.span_value_variable').text(parseFloat(global_var.value[row][index]).toFixed(1));
|
|
|
} else {
|
|
|
parent_node.find('.span_value_variable').text(global_var.value[row][index]);
|
|
|
}
|
|
@@ -747,7 +747,7 @@ function enableGlobalValueUpdate (global_var, parent_node) {
|
|
|
|
|
|
if (global_var.type == Types.REAL) {
|
|
|
input_field = $( "<input type='text' class='width-dynamic input_name_function' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' value='"
|
|
|
- + global_var.value.toFixed(1) + "' />" );
|
|
|
+ + parseFloat(global_var.value).toFixed(1) + "' />" );
|
|
|
input_field.insertBefore(parent_node.find('.span_value_variable'));
|
|
|
} else {
|
|
|
input_field = $( "<input type='text' class='width-dynamic input_name_function' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' value='"
|
|
@@ -775,7 +775,7 @@ function enableGlobalValueUpdate (global_var, parent_node) {
|
|
|
if (input_field.val().trim()) {
|
|
|
if (global_var.type == Types.REAL) {
|
|
|
global_var.value = parseFloat(input_field.val().trim());
|
|
|
- parent_node.find('.span_value_variable').text(global_var.value.toFixed(1));
|
|
|
+ parent_node.find('.span_value_variable').text(parseFloat(global_var.value).toFixed(1));
|
|
|
} else{
|
|
|
if (global_var.type == Types.INTEGER) {
|
|
|
global_var.value = parseInt(input_field.val().trim());
|
|
@@ -790,7 +790,7 @@ function enableGlobalValueUpdate (global_var, parent_node) {
|
|
|
changed = true;
|
|
|
} else {
|
|
|
if (global_var.type == Types.REAL) {
|
|
|
- parent_node.find('.span_value_variable').text(global_var.value.toFixed(1));
|
|
|
+ parent_node.find('.span_value_variable').text(parseFloat(global_var.value).toFixed(1));
|
|
|
} else {
|
|
|
parent_node.find('.span_value_variable').text(global_var.value);
|
|
|
}
|
|
@@ -819,7 +819,7 @@ function enableGlobalValueUpdate (global_var, parent_node) {
|
|
|
if (input_field.val().trim()) {
|
|
|
if (global_var.type == Types.REAL) {
|
|
|
global_var.value = parseFloat(input_field.val().trim());
|
|
|
- parent_node.find('.span_value_variable').text(global_var.value.toFixed(1));
|
|
|
+ parent_node.find('.span_value_variable').text(parseFloat(global_var.value).toFixed(1));
|
|
|
} else {
|
|
|
if (global_var.type == Types.INTEGER) {
|
|
|
global_var.value = parseInt(input_field.val().trim());
|
|
@@ -833,7 +833,7 @@ function enableGlobalValueUpdate (global_var, parent_node) {
|
|
|
changed = true;
|
|
|
} else {
|
|
|
if (global_var.type == Types.REAL) {
|
|
|
- parent_node.find('.span_value_variable').text(global_var.value.toFixed(1));
|
|
|
+ parent_node.find('.span_value_variable').text(parseFloat(global_var.value).toFixed(1));
|
|
|
} else {
|
|
|
parent_node.find('.span_value_variable').text(global_var.value);
|
|
|
}
|
|
@@ -856,7 +856,7 @@ function enableGlobalValueUpdate (global_var, parent_node) {
|
|
|
}
|
|
|
if(code == 27) {
|
|
|
if (global_var.type == Types.REAL) {
|
|
|
- parent_node.find('.span_value_variable').text(global_var.value.toFixed(1));
|
|
|
+ parent_node.find('.span_value_variable').text(parseFloat(global_var.value).toFixed(1));
|
|
|
} else{
|
|
|
parent_node.find('.span_value_variable').text(global_var.value);
|
|
|
}
|
|
@@ -964,7 +964,7 @@ function enableGlobalVectorValueUpdate (global_var, index, parent_node) {
|
|
|
|
|
|
if (global_var.type == Types.REAL) {
|
|
|
input_field = $( "<input type='text' class='width-dynamic input_name_function' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' value='"
|
|
|
- + global_var.value[index].toFixed(1) + "' />" );
|
|
|
+ + parseFloat(global_var.value[index]).toFixed(1) + "' />" );
|
|
|
input_field.insertBefore(parent_node.find('.span_value_variable'));
|
|
|
} else {
|
|
|
input_field = $( "<input type='text' class='width-dynamic input_name_function' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' value='"
|
|
@@ -993,7 +993,7 @@ function enableGlobalVectorValueUpdate (global_var, index, parent_node) {
|
|
|
if (global_var.type == Types.REAL) {
|
|
|
global_var.value[index] = parseFloat(input_field.val().trim());
|
|
|
|
|
|
- parent_node.find('.span_value_variable').text(global_var.value[index].toFixed(1));
|
|
|
+ parent_node.find('.span_value_variable').text(parseFloat(global_var.value[index]).toFixed(1));
|
|
|
} else {
|
|
|
|
|
|
if (global_var.type == Types.INTEGER) {
|
|
@@ -1008,7 +1008,7 @@ function enableGlobalVectorValueUpdate (global_var, index, parent_node) {
|
|
|
changed = true;
|
|
|
} else {
|
|
|
if (global_var.type == Types.REAL) {
|
|
|
- parent_node.find('.span_value_variable').text(global_var.value[index].toFixed(1));
|
|
|
+ parent_node.find('.span_value_variable').text(parseFloat(global_var.value[index]).toFixed(1));
|
|
|
} else {
|
|
|
parent_node.find('.span_value_variable').text(global_var.value[index]);
|
|
|
}
|
|
@@ -1037,7 +1037,7 @@ function enableGlobalVectorValueUpdate (global_var, index, parent_node) {
|
|
|
if (global_var.type == Types.REAL) {
|
|
|
global_var.value[index] = parseFloat(input_field.val().trim());
|
|
|
|
|
|
- parent_node.find('.span_value_variable').text(global_var.value[index].toFixed(1));
|
|
|
+ parent_node.find('.span_value_variable').text(parseFloat(global_var.value[index]).toFixed(1));
|
|
|
} else {
|
|
|
|
|
|
if (global_var.type == Types.INTEGER) {
|
|
@@ -1052,7 +1052,7 @@ function enableGlobalVectorValueUpdate (global_var, index, parent_node) {
|
|
|
changed = true;
|
|
|
} else {
|
|
|
if (global_var.type == Types.REAL) {
|
|
|
- parent_node.find('.span_value_variable').text(global_var.value[index].toFixed(1));
|
|
|
+ parent_node.find('.span_value_variable').text(parseFloat(global_var.value[index]).toFixed(1));
|
|
|
} else {
|
|
|
parent_node.find('.span_value_variable').text(global_var.value[index]);
|
|
|
}
|
|
@@ -1074,7 +1074,7 @@ function enableGlobalVectorValueUpdate (global_var, index, parent_node) {
|
|
|
}
|
|
|
if(code == 27) {
|
|
|
if (global_var.type == Types.REAL) {
|
|
|
- parent_node.find('.span_value_variable').text(global_var.value[index].toFixed(1));
|
|
|
+ parent_node.find('.span_value_variable').text(parseFloat(global_var.value[index]).toFixed(1));
|
|
|
} else {
|
|
|
parent_node.find('.span_value_variable').text(global_var.value[index]);
|
|
|
}
|