Merge branch '1782-Esos-mapas-dev' into 'develop'

Fixed colour bug in interface link

See merge request artica/pandorafms!1283
This commit is contained in:
vgilc 2018-02-08 16:27:54 +01:00
commit a5a6371270
1 changed files with 10 additions and 5 deletions

View File

@ -2078,10 +2078,16 @@ function add_interface_link_js() {
success: function (data) {
if (data['correct']) {
var temp_link = {};
temp_link['status_start'] = "0";
temp_link['status_end'] = "0";
temp_link['id_db'] = data['id_db_link'];
if (data['type_source'] == 1) {
temp_link['arrow_start'] = "module";
temp_link['id_module_start'] = source_value;
temp_link["status_start"] = data['status'];
temp_link["link_color"] = (data['status'] == "1") ? "#FC4444" : "#999";
}
else {
temp_link['arrow_start'] = "";
@ -2091,15 +2097,14 @@ function add_interface_link_js() {
if (data['type_target'] == 1) {
temp_link['arrow_end'] = "module";
temp_link['id_module_end'] = target_value;
temp_link["status_end"] = data['status'];
temp_link["link_color"] = (data['status'] == "1") ? "#FC4444" : "#999";
}
else {
temp_link['arrow_end'] = "";
temp_link['id_agent_end'] = target_value;
temp_link['id_module_end'] = 0;
}
temp_link['status_start'] = "0";
temp_link['status_end'] = "0";
temp_link['text_start'] = data['text_start'];
temp_link['text_end'] = data['text_end'];