bug #1628: inArray doesn't return false, but rather -1

This commit is contained in:
Tino Vazquez committed 2012-11-23 17:30:26 +01:00
1 parent e7b6fe45d6
commit e0d82d595e
1 file changed
+1 -1
+1 -1
View File
@@ -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>';
}