Добавить текстовый тип опций

This commit is contained in:
isqua 2015-01-27 14:28:08 +03:00
parent fa02bd8f7b
commit 54966185d1
1 changed files with 6 additions and 0 deletions

View File

@ -80,6 +80,7 @@ OptionsPage.prototype.restore = function() {
break;
case 'enum':
case 'plain':
input.value = data.value;
break;
@ -122,6 +123,11 @@ OptionsPage.prototype.updateOptionFromInput = function(input) {
type: 'enum',
value: input.value
};
} else {
this._options[key] = {
type: 'plain',
value: input.value
}
}
};