orbit-basic/app/assets/javascripts/design_temp.js

25 lines
656 B
JavaScript
Raw Normal View History

2011-07-19 10:31:53 +00:00
$(".r_snapshot").hover(
function(){
$(this).append($("<span></span>").html('<p class="z-preview"><img src="'+$(this).attr("path")+'"width="220" height="19" /></p>'));
}
,
function(){
$(this).find("span:last").remove();
}
);
$('input.multi_files').change(function(){
$(this).prev("ul").append("<li>"+$(this).val()+"</li>");
new_node =$(this).clone();
2011-07-20 06:04:16 +00:00
$(this).css("display","none");
new_node.val("");
$(this).after(new_node)
2011-07-19 10:31:53 +00:00
});
$('a.remove_mark').live("click",function(){
$(this).prev("input").value("true");
$(this).parent().css("text-decoration","line-through")
$(this).remove();
return false;
});