Add JS files
This commit is contained in:
55
modules/EcmReports/javascript/SendSMS.js
Normal file
55
modules/EcmReports/javascript/SendSMS.js
Normal file
@@ -0,0 +1,55 @@
|
||||
$(document).ready(function(){
|
||||
|
||||
$("#selectAccount").on('click', selectAccount);
|
||||
Calendar.setup ({
|
||||
inputField : "date_from",
|
||||
daFormat : "%d.%m.%Y",
|
||||
button : "date_from_trigger",
|
||||
singleClick : true,
|
||||
dateStr : "",
|
||||
step : 1
|
||||
});
|
||||
|
||||
Calendar.setup ({
|
||||
inputField : "date_to",
|
||||
daFormat : "%d.%m.%Y",
|
||||
button : "date_to_trigger",
|
||||
singleClick : true,
|
||||
dateStr : "",
|
||||
step : 1
|
||||
});
|
||||
|
||||
});
|
||||
function selectAccount() {
|
||||
open_popup('Accounts', 800, 500, '', true, false, {'call_back_function': 'set_return', 'form_name': 'ReportSalesByProduct', 'field_to_name_array': {"id":"account_id","name":"account_name"}}, 'single', true);
|
||||
}
|
||||
|
||||
function showPosition(id){
|
||||
if('hidden'==$('#tr_'+id).attr('class')){
|
||||
$('#tr_'+id).attr('class','show');
|
||||
|
||||
} else {
|
||||
$('#tr_'+id).attr('class','hidden');
|
||||
|
||||
}
|
||||
}
|
||||
function showHide(){
|
||||
|
||||
if($("#status").val()=='0'){
|
||||
var allElements=$( "tr" ).find( ".hidden" );
|
||||
$.each( allElements, function( key, value ) {
|
||||
$(value).attr('class','show');
|
||||
});
|
||||
$("#status").val(1);
|
||||
$("#show").attr("value",'Ukryj transakcje');
|
||||
|
||||
} else {
|
||||
var allElements=$( "tr" ).find( ".show" );
|
||||
$.each( allElements, function( key, value ) {
|
||||
$(value).attr('class','hidden');
|
||||
});
|
||||
$("#status").val(0);
|
||||
$("#show").attr("value",'Pokaż transakcje');
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user