Placeholder for settings

This commit is contained in:
Ruud
2012-12-04 23:04:48 +01:00
parent 4bffce637e
commit 0c5206f01b
2 changed files with 7 additions and 1 deletions
@@ -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 "&"'
},
{
+6 -1
View File
@@ -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
}
});