Fixed the error which caused the simple value elements disappear from the visual console after enable the grid
This commit is contained in:
parent
35a5d2a5de
commit
ce150336a9
|
@ -1292,8 +1292,7 @@ function setModuleValue(id_data, process_simple_value, period) {
|
|||
parameter.push ({name: "action", value: "get_module_value"});
|
||||
parameter.push ({name: "id_element", value: id_data});
|
||||
parameter.push ({name: "period", value: period});
|
||||
parameter.push ({name: "id_visual_console",
|
||||
value: id_visual_console});
|
||||
parameter.push ({name: "id_visual_console", value: id_visual_console});
|
||||
if (process_simple_value != undefined) {
|
||||
parameter.push ({name: "process_simple_value", value: process_simple_value});
|
||||
}
|
||||
|
@ -1303,11 +1302,10 @@ function setModuleValue(id_data, process_simple_value, period) {
|
|||
data: parameter,
|
||||
type: "POST",
|
||||
dataType: 'json',
|
||||
success: function (data)
|
||||
{
|
||||
text_value = $("#text_" + idItem).html();
|
||||
text_value = text_value.replace(/_VALUE_/gi,data.value);
|
||||
$("#text_" + id_data).html(text_value);
|
||||
success: function (data) {
|
||||
var currentValue = $("#text_" + id_data).html();
|
||||
currentValue = currentValue.replace(/_VALUE_/gi, data.value);
|
||||
$("#text_" + id_data).html(currentValue);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue