Ero sivun ”Widget:CitobsDBcounter” versioiden välillä
Järvi-meriwikistä
Rivi 41: | Rivi 41: | ||
var weekago = new Date(); weekago.setDate( weekago.getDate() - 7 ); | var weekago = new Date(); weekago.setDate( weekago.getDate() - 7 ); | ||
− | if ( start_date == 'x' ) { start_date = weekago.toISOString().split( 'T' )[0] | + | if ( start_date == 'x' ) { start_date = weekago.toISOString().split( 'T' )[0]; } |
− | if ( end_date == 'x' ) { end_date = today.toISOString().split( 'T' )[0] | + | if ( end_date == 'x' ) { end_date = today.toISOString().split( 'T' )[0]; } |
citobs.loadRequests( { 'service_code': service_code, 'keyword': keyword, 'start_date': start_date, 'end_date': end_date }, function() { | citobs.loadRequests( { 'service_code': service_code, 'keyword': keyword, 'start_date': start_date, 'end_date': end_date }, function() { |