Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     initComponent: function() {
  2.         // hard coded config (it cannot be changed while instantiating)
  3.         var config = {
  4.             baseCls: 'x-window-profile',
  5.             layout: 'card',
  6.             padding: 11,
  7.             width:  500,
  8.             height: 410,
  9.             activeItem: 0,
  10.             closable: false,
  11.             title: this.welcomeText,
  12.             bbar:  this.buildButtonBar(),
  13.             items: [
  14.                 this.buildUserLoginForm(),
  15.                 this.buildPasswordRecoveryForm()
  16.             ]
  17.         }; // eo config object
  18.  
  19.         // apply config
  20.         Ext.apply(this, Ext.apply(this.initialConfig, config));
  21.        
  22.         // call parent
  23.         Skool.MySkool.rul.window.UserLoginWindow.superclass.initComponent.apply(this, arguments);
  24.  
  25.         // Set email as focussed
  26.         this.on('afterlayout', function(){
  27.             var emailfield = this.findByType('emailfield')[0];
  28.             emailfield.focus(true, 1);
  29.         }, this, {single: true, delay: 1});
  30.        
  31.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement