|  | @@ -26,8 +26,11 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
 | 
	
		
			
				|  |  |                      [
 | 
	
		
			
				|  |  |                          {checkbox: true},
 | 
	
		
			
				|  |  |                          {field: 'id', title: __('Id')},
 | 
	
		
			
				|  |  | +                        {field: 'user_id', title: __('User_id')},
 | 
	
		
			
				|  |  |                          {field: 'user.u_id', title: __('User.u_id')},
 | 
	
		
			
				|  |  |                          {field: 'user.nickname', title: __('User.nickname'), operate: 'LIKE'},
 | 
	
		
			
				|  |  | +                        {field: 'gift_id', title: __('gift_id')},
 | 
	
		
			
				|  |  | +                        {field: 'name', title: __('name')},
 | 
	
		
			
				|  |  |                          {field: 'image', title: __('Image'), operate: false, events: Table.api.events.image, formatter: Table.api.formatter.image},
 | 
	
		
			
				|  |  |                          {field: 'value', title: __('Value')},
 | 
	
		
			
				|  |  |                          {field: 'is_use', title: __('Is_use'), searchList: {"1":__('Is_use 1'),"0":__('Is_use 0')}, formatter: Table.api.formatter.normal},
 | 
	
	
		
			
				|  | @@ -43,23 +46,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
 | 
	
		
			
				|  |  |              Table.api.bindevent(table);
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          add: function () {
 | 
	
		
			
				|  |  | -            $(document).on('change', "#c-gift_id", function () {
 | 
	
		
			
				|  |  | -                var that = this;
 | 
	
		
			
				|  |  | -                $.ajax({
 | 
	
		
			
				|  |  | -                    url:"gift/gift/index",
 | 
	
		
			
				|  |  | -                    method:'post',
 | 
	
		
			
				|  |  | -                    data:{
 | 
	
		
			
				|  |  | -                        id: $(that).val(),
 | 
	
		
			
				|  |  | -                    },
 | 
	
		
			
				|  |  | -                    success:function(res){
 | 
	
		
			
				|  |  | -                        var row = res.rows[0];
 | 
	
		
			
				|  |  | -                        $("#c-name").val(row.name);
 | 
	
		
			
				|  |  | -                        $("#c-image").val(row.image);
 | 
	
		
			
				|  |  | -                        $("#c-gif_image").val(row.special);
 | 
	
		
			
				|  |  | -                        $("#c-value").val(row.value);
 | 
	
		
			
				|  |  | -                    }
 | 
	
		
			
				|  |  | -                });
 | 
	
		
			
				|  |  | -            });
 | 
	
		
			
				|  |  |              Controller.api.bindevent();
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          edit: function () {
 |