|  | @ -16,30 +16,31 @@
 | 
	
		
			
				|  |  |         },
 | 
	
		
			
				|  |  |         initForm: function () {
 | 
	
		
			
				|  |  |             var me = this;
 | 
	
		
			
				|  |  |             me.$form.attrScan();
 | 
	
		
			
				|  |  |             var modelString = "${model.id}";
 | 
	
		
			
				|  |  |             var data;
 | 
	
		
			
				|  |  |             if(modelString!=undefined && modelString!=null && modelString.length>0)
 | 
	
		
			
				|  |  |             {
 | 
	
		
			
				|  |  |                 me.$form.Fields.fillValues({
 | 
	
		
			
				|  |  |                 data={
 | 
	
		
			
				|  |  |                     id: "${model.id}",
 | 
	
		
			
				|  |  |                     name: "${model.name}",
 | 
	
		
			
				|  |  |                 });
 | 
	
		
			
				|  |  |                 };
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                 me.actionUrl = "${contextRoot}/dimension/updateDimensionCatetroy";
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             editorDimensionCate.validator =  new $.jValidation.Validation(editorDimensionCate.$form, {immediate: true, onSubmit: false,
 | 
	
		
			
				|  |  |                 onElementValidateForAjax:function(elm){
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |             };
 | 
	
		
			
				|  |  |             this.$form.ligerAutoForm({
 | 
	
		
			
				|  |  |                 data: data,
 | 
	
		
			
				|  |  |                 validate: {
 | 
	
		
			
				|  |  |                     name: "required",
 | 
	
		
			
				|  |  |                 },
 | 
	
		
			
				|  |  |             });
 | 
	
		
			
				|  |  |         },
 | 
	
		
			
				|  |  |         bindEvents: function () {
 | 
	
		
			
				|  |  |             var me = this;
 | 
	
		
			
				|  |  |             $("#btnSave").click(function () {
 | 
	
		
			
				|  |  |                 if(!editorDimensionCate.validator.validate()){
 | 
	
		
			
				|  |  |                 if(!me.$form.ligerAutoForm("validate")){
 | 
	
		
			
				|  |  |                     return;
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |                 var data = me.$form.Fields.getValues();
 | 
	
		
			
				|  |  |                 var data = me.$form.ligerAutoForm("validate");
 | 
	
		
			
				|  |  |                 $.ajax({ //ajax处理
 | 
	
		
			
				|  |  |                     type: "POST",
 | 
	
		
			
				|  |  |                     url : me.actionUrl,
 |