Merge pull request #3 from Koalab/master

Update options.js
This commit is contained in:
Rodolphe Breard 2014-10-23 19:27:30 +02:00
commit 868216b526

View file

@ -89,8 +89,8 @@ OptionsManager.prototype.savePart = function(pass) {
if (this.opts !== null) {
for (i = this.opts.length - 1; i >= 0; --i) {
if ((pass && this.getElemType(this.opts[i]) === "password")
|| (!pass && this.getElemType(this.opts[i]) !== "password")) {
if ((pass && (this.getElemType(this.opts[i]) === "password" || this.getElemType(this.opts[i]) === "text"))
|| (!pass && this.getElemType(this.opts[i]) !== "password" && this.getElemType(this.opts[i]) !== "text")) {
data[this.opts[i].id] = this.getElemValue(this.opts[i]);
this.values[this.opts[i].id] = data[this.opts[i].id];
}