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:
@@ -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
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user