From 003db92c9be7c438939db095871397e11f96fcf8 Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 11 Dec 2012 22:22:31 +0100 Subject: [PATCH] Label depending on list. closes #1131 --- 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 b4e4819..b61ea7e 100644 --- a/couchpotato/core/plugins/movie/static/list.js +++ b/couchpotato/core/plugins/movie/static/list.js @@ -300,10 +300,11 @@ var MovieList = new Class({ }, deleteSelected: function(){ - var self = this; - var ids = self.getSelectedMovies() + var self = this, + ids = self.getSelectedMovies(), + help_msg = self.identifier == 'wanted' ? 'If you do, you won\'t be able to watch them, as they won\'t get downloaded!' : 'Your files will be safe, this will only delete the reference from the CouchPotato manage list'; - var qObj = new Question('Are you sure you want to delete '+ids.length+' movie'+ (ids.length != 1 ? 's' : '') +'?', 'If you do, you won\'t be able to watch them, as they won\'t get downloaded!', [{ + var qObj = new Question('Are you sure you want to delete '+ids.length+' movie'+ (ids.length != 1 ? 's' : '') +'?', help_msg, [{ 'text': 'Yes, delete '+(ids.length != 1 ? 'them' : 'it'), 'class': 'delete', 'events': {