Fixed interfaces section
This commit is contained in:
parent
bc05299cee
commit
99208f2492
|
@ -461,7 +461,7 @@ function update_link(row_index, id_link) {
|
||||||
var text_source_interface = "";
|
var text_source_interface = "";
|
||||||
if (interface_source != 0) {
|
if (interface_source != 0) {
|
||||||
text_source_interface = $("select[name='interface_source_" +
|
text_source_interface = $("select[name='interface_source_" +
|
||||||
row_index + "'] option:selected").text();
|
row_index +"'] option:selected").text();
|
||||||
}
|
}
|
||||||
|
|
||||||
var interface_target = parseInt(
|
var interface_target = parseInt(
|
||||||
|
@ -470,9 +470,9 @@ function update_link(row_index, id_link) {
|
||||||
);
|
);
|
||||||
|
|
||||||
var text_target_interface = "";
|
var text_target_interface = "";
|
||||||
if (interface_source != 0) {
|
if (interface_target != 0) {
|
||||||
text_source_interface = $("select[name='interface_source_" +
|
text_target_interface = $("select[name='interface_target_" +
|
||||||
row_index + "'] option:selected").text();
|
row_index +"'] option:selected").text();
|
||||||
}
|
}
|
||||||
|
|
||||||
$(".edit_icon_progress_" + row_index).css("display", "");
|
$(".edit_icon_progress_" + row_index).css("display", "");
|
||||||
|
@ -497,13 +497,11 @@ function update_link(row_index, id_link) {
|
||||||
if (data['correct']) {
|
if (data['correct']) {
|
||||||
$(".edit_icon_correct_" + row_index).css("display", "");
|
$(".edit_icon_correct_" + row_index).css("display", "");
|
||||||
|
|
||||||
$("select[name='interface_source_" + row_index + networkmap_id + "'] option[value='" + interface_source + "']")
|
$("select[name='interface_source_" + row_index + "'] option[value='" + interface_source + "']")
|
||||||
.prop("selected", true);
|
.prop("selected", true);
|
||||||
$("select[name='interface_target_" + row_index + networkmap_id + "'] option[value='" + interface_target + "']")
|
$("select[name='interface_target_" + row_index + "'] option[value='" + interface_target + "']")
|
||||||
.prop("selected", true);
|
.prop("selected", true);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (interface_source == 0) {
|
if (interface_source == 0) {
|
||||||
jQuery.each(graph.links, function(i, link_each) {
|
jQuery.each(graph.links, function(i, link_each) {
|
||||||
if (link_each.id_db == id_link) {
|
if (link_each.id_db == id_link) {
|
||||||
|
|
Loading…
Reference in New Issue