diff --git a/lib/options.js b/lib/options.js index fcb7c6a..4afacdc 100644 --- a/lib/options.js +++ b/lib/options.js @@ -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]; }