Orbit/app/assets/Archive/javascripts/ad_banner.js

19 lines
664 B
JavaScript
Raw Normal View History

2012-01-31 10:31:31 +00:00
$("button.multi_files").live("click", function(){
2012-02-04 02:32:24 +00:00
$("#new_add_banner_file_holder").append("<li>" + $(this).val() +'Time:'+ $(this).siblings('.ad_time').val()+'Link:'+$(this).siblings('.ad_out_link').val()+ "</li>");
2012-01-31 10:31:31 +00:00
new_node = $(this).parent().clone();
$(this).parent().css("display","none");
new_node.children('input.multi_files').val("");
$(this).parent().before(new_node);
return false;
});
$('a.remove_mark').live("click",function(){
$(this).prev("input").val("true");
$(this).parent().css("text-decoration","line-through")
$(this).parent().removeClass("r_snapshot");
$(this).next().remove();
$(this).remove();
return false;
});