Browse Source

fix this.idleInterval reference (this points to Window, so use tree)

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
8f659e6a66
  1. 2
      pyweb/mumble/media/js/channelviewer.js

2
pyweb/mumble/media/js/channelviewer.js

@ -211,7 +211,7 @@ Ext.extend( Ext.ux.MumbleChannelViewer, Ext.tree.TreePanel, {
userdata: json.users[i], userdata: json.users[i],
imageurl: tree.imageurl imageurl: tree.imageurl
}; };
if( json.users[i].idlesecs <= this.idleInterval )
if( json.users[i].idlesecs <= tree.idleInterval )
child.icon = tree.imageurl+'/talking_on.png'; child.icon = tree.imageurl+'/talking_on.png';
else else
child.icon = tree.imageurl+'/talking_off.png'; child.icon = tree.imageurl+'/talking_off.png';

Loading…
Cancel
Save