From f6e84b6a353f0f93f2020b013ffa2cb089112a0e Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 14 May 2013 00:22:19 +0200 Subject: [PATCH] Remove view after update --- couchpotato/core/plugins/movie/static/movie.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/couchpotato/core/plugins/movie/static/movie.js b/couchpotato/core/plugins/movie/static/movie.js index 9871cfba..5ca36c9d 100644 --- a/couchpotato/core/plugins/movie/static/movie.js +++ b/couchpotato/core/plugins/movie/static/movie.js @@ -23,7 +23,8 @@ var Movie = new Class({ var self = this; App.addEvent('movie.update.'+self.data.id, function(notification){ - self.busy(false) + self.busy(false); + self.removeView(); self.update.delay(2000, self, notification); }); @@ -107,6 +108,7 @@ var Movie = new Class({ self.data = notification.data; self.el.empty(); + self.removeView(); self.profile = Quality.getProfile(self.data.profile_id) || {}; self.create(); @@ -238,10 +240,10 @@ var Movie = new Class({ if(direction == 'in'){ self.temp_view = self.view; - self.changeView('details') + self.changeView('details'); self.el.addEvent('outerClick', function(){ - self.removeView() + self.removeView(); self.slide('out') }) el.show();