From 59c2e101d7d2b6d0390f7e5e1b07bde4e44792f7 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 18 Mar 2012 17:08:22 +0100 Subject: [PATCH] Reference to self --- couchpotato/static/scripts/couchpotato.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/couchpotato/static/scripts/couchpotato.js b/couchpotato/static/scripts/couchpotato.js index e4263884..b615f341 100644 --- a/couchpotato/static/scripts/couchpotato.js +++ b/couchpotato/static/scripts/couchpotato.js @@ -70,13 +70,13 @@ var CouchPotato = new Class({ [new Element('a.orange', { 'text': 'Restart', 'events': { - 'click': App.restart.bind(App) + 'click': self.restart.bind(self) } }), new Element('a.red', { 'text': 'Shutdown', 'events': { - 'click': App.shutdown.bind(App) + 'click': self.shutdown.bind(self) } }), new Element('a', {