Fix default password

The password widget was defaulting to the password "null".
This commit is contained in:
Jermolene 2013-11-10 19:22:10 +00:00
parent c77b451863
commit b1667259f0
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ PasswordWidget.prototype.render = function(parent,nextSibling) {
// Execute our logic
this.execute();
// Get the current password
var password = $tw.browser ? $tw.utils.getPassword(this.passwordName) : "";
var password = $tw.browser ? $tw.utils.getPassword(this.passwordName) || "" : "";
// Create our element
var domNode = this.document.createElement("input");
domNode.setAttribute("type","password");