text: $("#form-add").validate({
  	submitHandler:function(form){
  		add();
  	}
  });
  
  function add() {
  	var dataFormJson=$("#form-add").serialize();
  	$.ajax({
  		cache : true,
  		type : "POST",
  		url : "/rule/add",
  		data : dataFormJson,
  		async : false,
  		error : function(XMLHttpRequest){
  			$.modal.alertError(XMLHttpRequest.responseJSON.msg);
  		},
  		success : function(data) {
  			$.operate.saveSuccess(data);
  		}
  	});
  }
  
  