www.pudn.com > blog_swan_bzl14n.rar > upgrade.js, change:2012-09-06,size:472b


function getUpgrade(){
	var arr={
		account:SWJS.fValue('account'),
		password:SWJS.fValue('password')
	}
	return arr;
}

function upgrade(){
	var arrUpgrade=getUpgrade();
	SWJS.ajaxRequest('upgrade','upgrade',arrUpgrade,function(obj){
		if(obj.err==0){
			$('#step1').remove();
			$('#step2').show();
			SWJS.showMessage(obj.msg,obj.err);
		}else{
			SWJS.showMessage(obj.msg,obj.err);
		}
	});
}

$(function(){
		
	$('#upgrade').click(function(){
		upgrade();
	});
	
});