2012-03-27 09:42:08 +00:00
|
|
|
//add delete confirm dialog
|
|
|
|
var Del_url = '';
|
|
|
|
function addConfirmTo(ele) {
|
|
|
|
ele.each(function() {
|
|
|
|
$(this).click(function() {
|
|
|
|
$('#dialog-delete-confirm').modal({appendTo:'#main'});
|
|
|
|
Del_url = $(this).attr('data');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
$('#yes-btn').click(function() {
|
|
|
|
location.href = Del_url;
|
|
|
|
});
|
2012-03-30 05:49:32 +00:00
|
|
|
//handle table
|
|
|
|
$("table tr:nth-child(even)").addClass("even");
|
|
|
|
$("table tr:nth-child(odd)").addClass("odd");
|
2012-04-26 08:41:22 +00:00
|
|
|
//open download btn in new window or tab
|
|
|
|
$(".download-btn").click(function() {
|
|
|
|
window.open($(this).attr("data"));
|
|
|
|
});
|