mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 11:22:55 +09:00
bug #1628: inArray doesn't return false, but rather -1
This commit is contained in:
1 parent
e7b6fe45d6
commit
e0d82d595e
1 file changed
+1
-1
@@ -1585,7 +1585,7 @@ function vncIcon(vm){
|
||||
var state = OpenNebula.Helper.resource_state("vm_lcm",vm.LCM_STATE);
|
||||
var gr_icon;
|
||||
|
||||
if (graphics && graphics.TYPE == "vnc" && $.inArray(state, VNCstates)){
|
||||
if (graphics && graphics.TYPE == "vnc" && $.inArray(state, VNCstates)!=-1){
|
||||
gr_icon = '<a class="vnc" href="#" vm_id="'+vm.ID+'">';
|
||||
gr_icon += '<img src="images/vnc_on.png" alt=\"'+tr("Open VNC Session")+'\" /></a>';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user