왜 ext2.0은vista와 xp에서 다른가요?

2238 단어 htmlXPIEext
vista는 xp보다 가로줄이 하나 더 있습니다. 제목인 것 같지만 제목을 정의하지 않았습니까?


var LoginWindow=function(){
    var loginWindow,loginForm;

	createLoginForm=function(){
		loginForm=new Ext.form.FormPanel({
			frame:true,
			labelAlign: 'right',
			labelWidth:75,
			defaultType: 'textfield',
			waitMsgTarget:true,
			items:[{
				fieldLabel: ' ',
				name: 'operatorName',
				width:100
			},{
				fieldLabel: ' ',
				inputType:'password',
				width:100,
				name: 'password'
			}]			
		});
		loginForm.addButton({
			text: ' ',
			handler: function(){
				loginForm.form.submit({url:'login.do', waitMsg:' ...'});
			}
		});
		loginForm.addButton({
			text: ' ',
			handler: function(){
				loginForm.form.reset();
			}
		});
	}

	return {
        init : function(){
			var loginLink= Ext.get('loginLink');
			if(loginLink)
				loginLink.on('click',this.showLoginWindow);
			var logoutLink= Ext.get('logoutLink');
			if(logoutLink)
				logoutLink.on('click',logout);
			var inLink= Ext.get('inLink');
			if(inLink)
				inLink.on('click',function(){MainFrame.loadMainFrame('main/main.html');});			
			var homeLink= Ext.get('homeLink');
			if(homeLink)
				homeLink.on('click',function(){location.href=contextPath;});

			createLoginForm();
        },       

        showLoginWindow:function(){
			if(!loginWindow){
				loginWindow=new Ext.Window({
					title:' ',
					layout:'fit',
					width:260,
					height:135,
					modal:true,
					resizable:false,
					closeAction:'hide',
					plain:true,
					footer:true,
					items:[loginForm]
				});
			}
			loginWindow.show(this);
        }
    };
}();

Ext.onReady(LoginWindow.init,LoginWindow,true);



좋은 웹페이지 즐겨찾기