Roo.extend(Roo.bootstrap.form.Password, Roo.bootstrap.form.Input, {
- getAutoCreate : function()
+ onRender : function(ct, position)
{
- this.after = {
- xns : Roo.bootstrap,
- xtype : 'Button',
- cls : 'password-toggle'
- };
+ Roo.bootstrap.form.SecurePass.superclass.onRender.call(this, ct, position);
- return Roo.bootstrap.form.Password.superclass.getAutoCreate.call(this);
- },
+ this.el.addClass('form-password');
- initEvents : function()
- {
- Roo.bootstrap.form.Password.superclass.initEvents.call(this);
+ this.wrap = this.inputEl().wrap({
+ cls : 'password-wrap'
+ });
+
+ this.toggle = this.wrap.createChild({
+ tag : 'Button',
+ cls : 'password-toggle'
+ });
- this.el.addClass('form-password');
this.toggleEl().addClass('password-hidden');