2011-07-22 08:28:41 +00:00
|
|
|
$(".r_snapshot").live({
|
|
|
|
mouseenter:
|
2011-07-19 10:31:53 +00:00
|
|
|
function(){
|
|
|
|
$(this).append($("<span></span>").html('<p class="z-preview"><img src="'+$(this).attr("path")+'"width="220" height="19" /></p>'));
|
2011-07-22 08:28:41 +00:00
|
|
|
},
|
|
|
|
mouseleave:
|
2011-07-19 10:31:53 +00:00
|
|
|
function(){
|
|
|
|
$(this).find("span:last").remove();
|
|
|
|
}
|
2011-07-22 08:28:41 +00:00
|
|
|
}
|
|
|
|
);
|
2011-07-19 10:31:53 +00:00
|
|
|
|
2011-07-21 03:22:31 +00:00
|
|
|
$('input.multi_files').live("change", function(){
|
2011-07-19 10:31:53 +00:00
|
|
|
$(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("");
|
2011-07-21 03:22:31 +00:00
|
|
|
$(this).before(new_node)
|
2011-07-19 10:31:53 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$('a.remove_mark').live("click",function(){
|
2011-07-20 09:05:28 +00:00
|
|
|
$(this).prev("input").val("true");
|
2011-07-19 10:31:53 +00:00
|
|
|
$(this).parent().css("text-decoration","line-through")
|
2011-07-22 08:28:41 +00:00
|
|
|
$(this).parent("li").removeClass("r_snapshot");
|
|
|
|
$(this).next("span").remove();
|
2011-07-19 10:31:53 +00:00
|
|
|
$(this).remove();
|
|
|
|
return false;
|
|
|
|
});
|