init
This commit is contained in:
36
modules/EcmPaymentStates/javascript/summary.js
Normal file
36
modules/EcmPaymentStates/javascript/summary.js
Normal file
@@ -0,0 +1,36 @@
|
||||
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");
|
||||
}
|
||||
Reference in New Issue
Block a user