Ero sivun ”Widget:CitobsDBcounter” versioiden välillä
Järvi-meriwikistä
Rivi 25: | Rivi 25: | ||
var keyword = "<!--{$keyword|default:x|escape:'html'}-->"; | var keyword = "<!--{$keyword|default:x|escape:'html'}-->"; | ||
var start_date= "<!--{$start_date|default:x|escape:'html'}-->"; | var start_date= "<!--{$start_date|default:x|escape:'html'}-->"; | ||
+ | var end_date= "<!--{$end_date|default:x|escape:'html'}-->"; | ||
var citobs = new CitobsOpen311(); | var citobs = new CitobsOpen311(); | ||
Rivi 31: | Rivi 32: | ||
var startDate = new Date(); | var startDate = new Date(); | ||
startDate.setDate( startDate.getDate()-days ); | startDate.setDate( startDate.getDate()-days ); | ||
+ | |||
+ | //var endDate = new Date(); | ||
+ | //startDate.setDate( startDate.getDate()-days ); | ||
citobs.loadRequests( { 'service_code': service_code, 'keyword': keyword, 'start_date': start_date }, function() { | citobs.loadRequests( { 'service_code': service_code, 'keyword': keyword, 'start_date': start_date }, function() { |