And a couple more fixes #136

This commit is contained in:
Zixaphir 2013-08-08 14:27:19 -07:00
parent ee4ece2574
commit 254fa9959b
3 changed files with 13 additions and 10 deletions

View File

@ -8359,13 +8359,14 @@
cb: this.node
});
},
node: function(post) {
var str, _ref;
node: function() {
var str, uid;
if (((_ref = $('.hand', this.nodes.uniqueID)) != null ? _ref.nodeName : void 0) !== 'SPAN') {
str = this.info.uniqueID;
uid = $('.hand', this.nodes.uniqueID);
if (!(str && uid && uid.nodeName === 'SPAN')) {
return;
}
str = this.info.uniqueID;
return uid.style.cssText = IDColor.css(IDColor.ids[str] || IDColor.compute(str));
},
ids: {},

View File

@ -8345,13 +8345,14 @@
cb: this.node
});
},
node: function(post) {
var str, _ref;
node: function() {
var str, uid;
if (((_ref = $('.hand', this.nodes.uniqueID)) != null ? _ref.nodeName : void 0) !== 'SPAN') {
str = this.info.uniqueID;
uid = $('.hand', this.nodes.uniqueID);
if (!(str && uid && uid.nodeName === 'SPAN')) {
return;
}
str = this.info.uniqueID;
return uid.style.cssText = IDColor.css(IDColor.ids[str] || IDColor.compute(str));
},
ids: {},

View File

@ -6,9 +6,10 @@ IDColor =
name: 'Color User IDs'
cb: @node
node: (post) ->
return unless $('.hand', @nodes.uniqueID)?.nodeName is 'SPAN'
node: ->
str = @info.uniqueID
uid = $ '.hand', @nodes.uniqueID
return unless str and uid and uid.nodeName is 'SPAN'
uid.style.cssText = IDColor.css IDColor.ids[str] or IDColor.compute str
ids: {}