diff --git a/deluge/ui/webui/templates/ajax/static/js/deluge-bars.js b/deluge/ui/webui/templates/ajax/static/js/deluge-bars.js index d8fbfad02..afbee977e 100644 --- a/deluge/ui/webui/templates/ajax/static/js/deluge-bars.js +++ b/deluge/ui/webui/templates/ajax/static/js/deluge-bars.js @@ -11,14 +11,14 @@ Deluge.Widgets.Toolbar = new Class({ Extends: Widgets.Base, initialize: function() { - this.parent($('toolbar')) - this.buttons = this.element.getFirst() + this.parent($('toolbar')); + this.buttons = this.element.getFirst(); this.buttons.getElements('li').each(function(el) { el.addEvent('click', function(e) { - e.action = el.id - this.fireEvent('buttonClick', e) - }.bind(this)) - }, this) + e.action = el.id; + this.fireEvent('buttonClick', e); + }.bind(this)); + }, this); } });