diff --git a/app/assets/javascripts/design_temp.js b/app/assets/javascripts/design_temp.js
index 70a6acc3..844ab9c1 100644
--- a/app/assets/javascripts/design_temp.js
+++ b/app/assets/javascripts/design_temp.js
@@ -1,12 +1,14 @@
-$(".r_snapshot").hover(
+$(".r_snapshot").live({
+ mouseenter:
function(){
$(this).append($("").html('
'));
- }
- ,
+ },
+ mouseleave:
function(){
$(this).find("span:last").remove();
}
- );
+ }
+);
$('input.multi_files').live("change", function(){
$(this).prev("ul").append(""+$(this).val()+"");
@@ -19,6 +21,8 @@ $('input.multi_files').live("change", function(){
$('a.remove_mark').live("click",function(){
$(this).prev("input").val("true");
$(this).parent().css("text-decoration","line-through")
+ $(this).parent("li").removeClass("r_snapshot");
+ $(this).next("span").remove();
$(this).remove();
return false;
});
diff --git a/app/models/design.rb b/app/models/design.rb
index 95b54931..0f11309c 100644
--- a/app/models/design.rb
+++ b/app/models/design.rb
@@ -58,7 +58,6 @@ class Design
object.to_save = false
object.save
end
-debugger
if object.to_destroy
object.destroy
end
diff --git a/app/views/admin/designs/_design_file.html.erb b/app/views/admin/designs/_design_file.html.erb
index fb8a08ec..82fd39ad 100644
--- a/app/views/admin/designs/_design_file.html.erb
+++ b/app/views/admin/designs/_design_file.html.erb
@@ -8,7 +8,7 @@
<% object.send(fieldname_p).each do |t| %>
<% li_class += 'r_destroy ' if item_destroy %>
<% li_class += 'r_snapshot ' if item_snapshot %>
- <%= t.file_filename %>
+ > <%= t.file_filename %>
<% if item_destroy %>
<%=fields_for "design["+fieldname_p+"][]",t,:index=>nil do |f| %>
<%= f.hidden_field :id %>