;(function(){
	var prepEl = $('#prepName'),
		gradeEl = $('#gradeList'),
		typeEl = $('#typeList'),
		uEl = $('#uList');


	function goto(){
		var prid = prepEl.val();
		var gn = gradeEl.val();
		var type = typeEl.val();
		var uid = uEl.val() || 0;
		var url = '/group/prep?prid='+prid+'&gr='+gn+'&tag='+type+'&ud='+uid;
		window.location = url;
		//console.log(url);
	}

	prepEl.bind('change',function(){
		goto();

	});
	gradeEl.bind('change',function(){
		goto();
	});
	typeEl.bind('change',function(){
		goto();
	});
	uEl.bind('change',function(){
		goto();
	});

	$('#searchKey').on("focus blur",function(e){
		var dom = $(this),
			v = dom.val(),
			def = dom.attr('data-def');
			if(v == def || v == ''){
				if(e.type == 'focus'){
					dom.val('');
				}else{
					dom.val(def);
				}
			}else{
				//dom.val(def);
			}
	});

	$('.mark').on('click',function(e){
		var t = $(e.target),
			id = t.attr('data-id');
		$('#btn'+id).hide();
		$('#mark'+id).show();
	});

	$('.save').on('click',function(e){
		var t = $(e.target),
			id = t.attr('data-id'),
			v = $.trim($('#input'+id).val());

		if(v != ''){
			$.post('/cgi/mark_file',{fid : id,mark: v},function(d){
				$('#input'+id).val('');
				if(d.code == 0){	
					$('#btn'+id+' span').html(v);
				}else{
					alert(d.data.msg);
				}
				$('#btn'+id).show();
				$('#mark'+id).hide();				
			});

		}else{
			alert('你还没有评论');
		}

	});

		$(".file-name").click(function(e){
			var target = $(e.target);
			var fid = target.attr('data-fid');
			var id= target.attr('data-id');
			//review?fid=24&t=2&gid=0&id=18
			$("#reviewIframe").attr('src','/review?fid='+fid+'&id='+id);
			$('#reviewFile').modal('show');
		});	

	$('.esc').on('click',function(e){
		var t = $(e.target),
			id = t.attr('data-id');
		$('#btn'+id).show();
		$('#mark'+id).hide();
	});



})();
@@ -1532,16 +1532,54 @@
 a-id');%0A
+%09%09%09var gid = target.attr('data-gid');%0A
 %09%09%09//rev
@@ -1643,24 +1643,36 @@
 c','/review?
+gid='+gid+'&
 fid='+fid+'&
@@ -1869,8 +1869,9 @@
 %0A%0A%0A%7D)();
+%0A

Update gprep.js