Fix Thread Watcher.

This commit is contained in:
Nicolas Stepien 2012-04-29 14:34:25 +02:00
parent d7b464205a
commit f1a7942d56
2 changed files with 5 additions and 6 deletions

View File

@ -2615,13 +2615,13 @@
Watcher = {
init: function() {
var favicon, html, input, inputs, _i, _len;
var favicon, html, input, _i, _len, _ref;
html = '<div class=move>Thread Watcher</div>';
this.dialog = UI.dialog('watcher', 'top: 50px; left: 0px;', html);
$.add(d.body, this.dialog);
inputs = $$('.op > input');
for (_i = 0, _len = inputs.length; _i < _len; _i++) {
input = inputs[_i];
_ref = $$('.op input');
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
input = _ref[_i];
favicon = $.el('img', {
className: 'favicon'
});

View File

@ -2087,8 +2087,7 @@ Watcher =
$.add d.body, @dialog
#add watch buttons
inputs = $$ '.op > input'
for input in inputs
for input in $$ '.op input'
favicon = $.el 'img',
className: 'favicon'
$.on favicon, 'click', @cb.toggle