From 6106fd4e8206e3bc95c8737d74befbb250f64c35 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 13 Oct 2012 21:19:56 +0200 Subject: [PATCH] Only scroll back to top when added --- couchpotato/core/plugins/movie/static/list.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/couchpotato/core/plugins/movie/static/list.js b/couchpotato/core/plugins/movie/static/list.js index 452f519b..fcc446bb 100644 --- a/couchpotato/core/plugins/movie/static/list.js +++ b/couchpotato/core/plugins/movie/static/list.js @@ -54,12 +54,13 @@ var MovieList = new Class({ movieAdded: function(notification){ var self = this; - window.scroll(0,0); - if(self.options.add_new && !self.movies_added[notification.data.id] && notification.data.status.identifier == self.options.status) + if(self.options.add_new && !self.movies_added[notification.data.id] && notification.data.status.identifier == self.options.status){ + window.scroll(0,0); self.createMovie(notification.data, 'top'); - self.checkIfEmpty(); + self.checkIfEmpty(); + } }, create: function(){