From 0c5206f01b9dde074e5cd09e95782b620aa32a4e Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 4 Dec 2012 23:04:48 +0100 Subject: [PATCH] Placeholder for settings --- couchpotato/core/plugins/searcher/__init__.py | 1 + couchpotato/static/scripts/page/settings.js | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/searcher/__init__.py b/couchpotato/core/plugins/searcher/__init__.py index 1fc6f3f..a6dd691 100644 --- a/couchpotato/core/plugins/searcher/__init__.py +++ b/couchpotato/core/plugins/searcher/__init__.py @@ -24,6 +24,7 @@ config = [{ 'name': 'required_words', 'label': 'Required words', 'default': '', + 'placeholder': 'Example: DTS, AC3 & English', 'description': 'Ignore releases that don\'t contain at least one set of words. Sets are separated by "," and each word within a set must be separated with "&"' }, { diff --git a/couchpotato/static/scripts/page/settings.js b/couchpotato/static/scripts/page/settings.js index f4afc84..44ae0f6 100644 --- a/couchpotato/static/scripts/page/settings.js +++ b/couchpotato/static/scripts/page/settings.js @@ -436,9 +436,14 @@ Option.String = new Class({ self.input = new Element('input.inlay', { 'type': 'text', 'name': self.postName(), - 'value': self.getSettingValue() + 'value': self.getSettingValue(), + 'placeholder': self.getPlaceholder() }) ); + }, + + getPlaceholder: function(){ + return this.options.placeholder } });