From 9898bd9df7185aeb5bdcc97551ed036ce64137fa Mon Sep 17 00:00:00 2001 From: chris2tof Date: Thu, 21 Jul 2011 11:22:31 +0800 Subject: [PATCH] Modification in JS to upload more than 2 files --- app/assets/javascripts/design_temp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/design_temp.js b/app/assets/javascripts/design_temp.js index 8cbc9470..70a6acc3 100644 --- a/app/assets/javascripts/design_temp.js +++ b/app/assets/javascripts/design_temp.js @@ -8,12 +8,12 @@ $(".r_snapshot").hover( } ); -$('input.multi_files').change(function(){ +$('input.multi_files').live("change", function(){ $(this).prev("ul").append("
  • "+$(this).val()+"
  • "); new_node =$(this).clone(); $(this).css("display","none"); new_node.val(""); - $(this).after(new_node) + $(this).before(new_node) }); $('a.remove_mark').live("click",function(){