Modification in JS to upload more than 2 files

This commit is contained in:
chris2tof 2011-07-21 11:22:31 +08:00
parent f8d1a1315b
commit 9898bd9df7
1 changed files with 2 additions and 2 deletions

View File

@ -8,12 +8,12 @@ $(".r_snapshot").hover(
} }
); );
$('input.multi_files').change(function(){ $('input.multi_files').live("change", function(){
$(this).prev("ul").append("<li>"+$(this).val()+"</li>"); $(this).prev("ul").append("<li>"+$(this).val()+"</li>");
new_node =$(this).clone(); new_node =$(this).clone();
$(this).css("display","none"); $(this).css("display","none");
new_node.val(""); new_node.val("");
$(this).after(new_node) $(this).before(new_node)
}); });
$('a.remove_mark').live("click",function(){ $('a.remove_mark').live("click",function(){