mirror of
https://github.com/OpenNebula/one.git
synced 2025-09-06 13:44:15 +03:00
M #~: Don't show always dropdowns (#1009)
This commit is contained in:
@@ -1029,9 +1029,16 @@ define(function(require) {
|
|||||||
var ipsHtml = this.ipsStr(element, { divider, groupStrFunction: groupByIpsDropdown, forceGroup: true });
|
var ipsHtml = this.ipsStr(element, { divider, groupStrFunction: groupByIpsDropdown, forceGroup: true });
|
||||||
var ips = [];
|
var ips = [];
|
||||||
|
|
||||||
$.each($.parseHTML(ipsHtml), function() {
|
$.each($.parseHTML(ipsHtml), function(index, element) {
|
||||||
|
if (!ips.includes($( this ).text()) && $( this ).text() !== "")
|
||||||
ips.push($( this ).text());
|
ips.push($( this ).text());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (ips.length === 0)
|
||||||
|
return "<p style=\"margin-bottom:0;\">--</p>";
|
||||||
|
else if (ips.length === 1)
|
||||||
|
return "<p style=\"margin-bottom:0;\">"+ips[0]+"</p>"
|
||||||
|
|
||||||
var firstIP = ipsHtml.split("<end_first_ip>")[0]
|
var firstIP = ipsHtml.split("<end_first_ip>")[0]
|
||||||
ipsHtml = ipsHtml.split("<end_first_ip>")[1]
|
ipsHtml = ipsHtml.split("<end_first_ip>")[1]
|
||||||
ipsHtml =
|
ipsHtml =
|
||||||
|
Reference in New Issue
Block a user