Browse Source

Placeholder for settings

pull/1114/merge
Ruud 13 years ago
parent
commit
0c5206f01b
  1. 1
      couchpotato/core/plugins/searcher/__init__.py
  2. 7
      couchpotato/static/scripts/page/settings.js

1
couchpotato/core/plugins/searcher/__init__.py

@ -24,6 +24,7 @@ config = [{
'name': 'required_words', 'name': 'required_words',
'label': 'Required words', 'label': 'Required words',
'default': '', '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 "&"' '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 "&"'
}, },
{ {

7
couchpotato/static/scripts/page/settings.js

@ -436,9 +436,14 @@ Option.String = new Class({
self.input = new Element('input.inlay', { self.input = new Element('input.inlay', {
'type': 'text', 'type': 'text',
'name': self.postName(), 'name': self.postName(),
'value': self.getSettingValue() 'value': self.getSettingValue(),
'placeholder': self.getPlaceholder()
}) })
); );
},
getPlaceholder: function(){
return this.options.placeholder
} }
}); });

Loading…
Cancel
Save