1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

F #1417: Show one IP in dropdown (#18)

Signed-off-by: Frederick Borges <fborges@opennebula.io>
(cherry picked from commit 52b314a73f360d490eb12d84c8ffe98c9ed415ae)
This commit is contained in:
Frederick Borges 2020-06-17 15:44:16 +02:00 committed by Tino Vazquez
parent 4e25145e9b
commit c4d65dcd2f
No known key found for this signature in database
GPG Key ID: 2FE9C32E94AEABBE

View File

@ -835,7 +835,7 @@ define(function(require) {
}
// If it has less than "numIPs" IPs
var numIPs = 3;
var numIPs = 2;
if ((ips.length < numIPs)) return ipsStr;
// Take the first x
@ -847,7 +847,7 @@ define(function(require) {
// Format the other IPs inside a dropdown
if (ips.length){
html += '<ul class="dropdown menu ips-dropdown" data-dropdown-menu><li><a style="padding-top:0em;padding-bottom:0em;color:gray">'+insideHtml+'...</a><ul class="menu" style="max-height: 25em; overflow: scroll;">';
html += '<ul class="dropdown menu ips-dropdown" style=" text-align:left;" data-dropdown-menu><li><a style="padding-top:0em;padding-bottom:0em;padding-left:0em;color:gray">'+insideHtml+'</a><ul class="menu" style="max-height: 25em; overflow: scroll;">';
$.each(ips, function(index, value){
html+='<li><a style="color:gray">' + value + '</a></li>';
});