Ero sivun ”Widget:CitobsDBcounter” versioiden välillä
Järvi-meriwikistä
Rivi 34: | Rivi 34: | ||
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]; } | ||
+ | |||
+ | console.log( start_date ); | ||
+ | console.log( end_date ); | ||
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() { |