Update options.js

Modified saving options in order to save the login along the password in locale storage, so it's available with each restart.
This commit is contained in:
SirBelga 2014-10-22 19:53:26 +02:00
parent f6af4ee7ef
commit 11d8cbd48d

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];
}