caipin 5 năm trước cách đây
mục cha
commit
41a3b4ecc9
1 tập tin đã thay đổi với 4 bổ sung6 xóa
  1. 4 6
      global/js/columnShow/columnShow.js

+ 4 - 6
global/js/columnShow/columnShow.js

@@ -4,14 +4,12 @@ $(function() {
 		var column = $(this).attr('column');
 		var isAccept = $(this).prop("checked");
 		
-		$('table[columnShow] tr').find('td:eq('+column+')').hide();
-		
 		if (isAccept) {
-			//alert("接受任务成功");
-			// $("#tisaccept").prop("checked",false);
+			$('table[columnShow] th').find('td:eq('+column+')').hide();
+			$('table[columnShow] tr').find('td:eq('+column+')').hide();
 		} else {
-			//alert("取消任务成功");
-			// $("#tisaccept").prop("checked",true);
+			$('table[columnShow] th').find('td:eq('+column+')').show();
+			$('table[columnShow] tr').find('td:eq('+column+')').show();
 		}
 		
 	});