From 39c2567d5abb6cc01c70a7d0bfebf57ebe464d20 Mon Sep 17 00:00:00 2001 From: Ruud Date: Wed, 26 Sep 2012 20:11:19 +0200 Subject: [PATCH] Also listen to search ended per movie. --- couchpotato/core/plugins/movie/static/movie.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/couchpotato/core/plugins/movie/static/movie.js b/couchpotato/core/plugins/movie/static/movie.js index f5cd41e1..78b9dc93 100644 --- a/couchpotato/core/plugins/movie/static/movie.js +++ b/couchpotato/core/plugins/movie/static/movie.js @@ -30,6 +30,11 @@ var Movie = new Class({ self.busy(true) }); }) + + App.addEvent('searcher.ended.'+self.data.id, function(notification){ + if(notification.data) + self.busy(false) + }); }, destroy: function(){