37 lines
887 B
JavaScript
37 lines
887 B
JavaScript
var ajax_url = "index.php?module=EcmPaymentStates&action=summary_javahelper&to_pdf=1";
|
|
|
|
function showDetails(id) {
|
|
$("#details_"+id).show('slow');
|
|
|
|
var params = {
|
|
job : 'getDetails',
|
|
id : id,
|
|
};
|
|
|
|
$.ajax({
|
|
type : "POST",
|
|
url : ajax_url,
|
|
dataType : "text",
|
|
success : function(data) {
|
|
if (data != '-1')
|
|
$("#details_"+id).html(data);
|
|
},
|
|
data : params
|
|
});
|
|
}
|
|
|
|
function hideDetails(id) {
|
|
$("#details_"+id).hide('slow');
|
|
}
|
|
/*
|
|
* Sort type:
|
|
* asc
|
|
* desc
|
|
*/
|
|
function sortOrder(column, type) {
|
|
if (type=='desc' || type=="")
|
|
window.location.replace("index.php?module=EcmPaymentStates&action=summaryNew&parentTab=Rozrachunki&sort="+column+"&sortType=desc");
|
|
if (type=='asc')
|
|
window.location.replace("index.php?module=EcmPaymentStates&action=summaryNew&parentTab=Rozrachunki&sort="+column+"&sortType=asc");
|
|
}
|