X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2Fsymbols%2Fsrc%2FRoo_bootstrap_SecurePass.js.html;h=dca6310391d1888cea44e9343ae3bb8ea7163516;hb=f75782c347f3d8c26acf0c63fa08a09d77539344;hp=498b849ab1c0a92184320836372fde94da3669a4;hpb=1f29758cfb4b45fba97b827fa53dad9e5b036281;p=roojs1 diff --git a/docs/symbols/src/Roo_bootstrap_SecurePass.js.html b/docs/symbols/src/Roo_bootstrap_SecurePass.js.html index 498b849ab1..dca6310391 100644 --- a/docs/symbols/src/Roo_bootstrap_SecurePass.js.html +++ b/docs/symbols/src/Roo_bootstrap_SecurePass.js.html @@ -61,7 +61,7 @@ insecure: false, // private initEvents: function () { - Ext.form.SecurePass.superclass.initEvents.call(this); + Roo.bootstrap.SecurePass.superclass.initEvents.call(this); if (this.el.is('input[type=password]') && Roo.isSafari) { this.el.on('keydown', this.SafariOnKeyDown, this); @@ -71,7 +71,7 @@ }, // private onRender: function (ct, position) { - Ext.form.SecurePass.superclass.onRender.call(this, ct, position); + Roo.bootstrap.SecurePass.superclass.onRender.call(this, ct, position); this.wrap = this.el.wrap({cls: 'x-form-field-wrap'}); this.trigger = this.wrap.createChild({tag: 'div', cls: 'StrengthMeter ' + this.triggerClass}); @@ -83,23 +83,18 @@ }, cn: { tag: 'div', + cls: 'password_meter_grey', style: { width: this.width + 'px', - height: '9px', - 'background-image': 'url(\'' + this.imageRoot + '/password_meter_grey.gif\')', - 'background-position': 'center center', - 'background-repeat': 'no-repeat' + height: '20px' }, cn: { //id: 'PwdMeter', tag: 'div', + cls: 'password_meter', style: { width: 0, - height: '9px', - 'background-image': 'url(\'' + this.imageRoot + '/password_meter.gif\')', - 'background-position': 'center center', - 'background-repeat': 'no-repeat', - 'font-size': '9px' + height: '20px' } } } @@ -118,7 +113,7 @@ if (this.wrap) { this.wrap.remove(); } - Ext.form.TriggerField.superclass.onDestroy.call(this); + Roo.bootstrap.TriggerField.superclass.onDestroy.call(this); }, // private checkStrength: function () { @@ -138,7 +133,7 @@ strength = 0; } var pm = this.trigger.child('div/div/div').dom; - + pm.style.width = (this.width / 3) * strength + 'px'; //if(this.pwdStrengths != null && strength > 0) { pm.innerHTML = this.meterLabel + '&nbsp;' + this.pwdStrengths[strength]; @@ -149,7 +144,7 @@ this._lastPwd = pwd; }, reset: function () { - Ext.form.SecurePass.superclass.reset.call(this); + Roo.bootstrap.SecurePass.superclass.reset.call(this); this._lastPwd = ''; var pm = this.trigger.child('div/div/div').dom; pm.style.width = 0; @@ -158,7 +153,7 @@ // private validateValue: function (value) { - if (!Ext.form.TextField.superclass.validateValue.call(this, value)) { + if (!Roo.bootstrap.SecurePass.superclass.validateValue.call(this, value)) { return false; } if (value.length == 0) { @@ -197,10 +192,18 @@ } else { strength = 0; } + if (strength < 2) { this.markInvalid(this.errors.TooWeak); return false; } + console.log('strength: ' + strength); + var pm = this.trigger.child('div/div/div').dom; + + pm.style.width = (this.width / 3) * strength + 'px'; + + pm.innerHTML = this.meterLabel + '&nbsp;' + this.pwdStrengths[strength]; + /* for (var index = 0; index < this.fieldsFilter.length; ++index) { filter = document.getElementById(this.fieldsFilter[index][0]).value;