1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00

Add attribute operational to netixlan #539

revert accidentally commited change to netixlan js finalize function
This commit is contained in:
Stefan Pratter
2020-04-10 09:03:12 +00:00
parent e630aea692
commit 3298b6626d
8 changed files with 137 additions and 21 deletions

View File

@@ -1325,6 +1325,9 @@ twentyc.editable.module.register(
ixlnk.text(data.ix.name);
row.find(".exchange").html(ixlnk);
if(data.operational)
row.addClass("operational")
// if ixlan has a name, render it next to the exchange name
if(data.ixlan.name)
row.find(".exchange").append($('<span>').addClass('tiny suffix').text(data.ixlan.name));
@@ -1366,6 +1369,13 @@ twentyc.editable.module.register(
},
finalize_update_netixlan : function(rowId, row, data) {
if(data.operational)
row.addClass("operational")
else
row.removeClass("operational")
},
// FINALIZERS: NETFAC

View File

@@ -398,6 +398,23 @@ div.panel > .btn {
margin-bottom: 5px;
}
.editable-inline > div[data-edit-type] {
display: inline-block;
}
.mode-edit .netixlan-extra {
margin-top: 10px;
}
.glyphicon-warning-sign {
color: #b19400;
vertical-align: text-top;
}
.operational .not-operational {
display: none !important;
}
/* landing page: info */
div.landing_info {