Example #1
0
	submit:function(data){
		$.post('/brush/addTask',data,function(data){
			data = $.JSON.parse(data);
			if( data.code != 0 ){
				dialog.message(data.msg);
				return;
			}
			history.back();
		});
	},
Example #2
0
			dialog.confirm('确认删除该用户,不可回退操作?!',function(){
				$.post('/user/del',{userId:data.userId},function(data){
					data = $.JSON.parse(data);
					if( data.code != 0 ){
						dialog.message(data.msg);
						return;
					}
					location.href = 'index.html';
				});
			});
Example #3
0
			click:function(data){
				$.post('/blog/delAuto',{blogSyncAutoId:data.blogSyncAutoId},function(data){
					data = $.JSON.parse(data);
					if( data.code != 0 ){
						dialog.message(data.msg);
						return;
					}
					location.href = 'indexAuto.html';
				});
			}
Example #4
0
		submit:function(data){
			data = $.extend({userId:userId},{password:data.password});
			$.post('/user/modPassword',data,function(data){
				data = $.JSON.parse(data);
				if( data.code != 0 ){
					dialog.message(data.msg);
					return;
				}
				history.back();
			});
		},