From 33ed07b142f76d4510c335273ab4b0a061e993f6 Mon Sep 17 00:00:00 2001 From: "Kasper D. Fischer" Date: Fri, 9 May 2014 09:37:28 +0000 Subject: [PATCH] Added class to detail and download row of event table to prevent substituting even tent details in both rows. --- www/events.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/events.js b/www/events.js index 00881c8..a632b48 100644 --- a/www/events.js +++ b/www/events.js @@ -103,7 +103,7 @@ function ajaxLoadEvents(stime, etime) { + ''+location+'Karte' + ''; // setting up event details (2nd line) - row += '' + row += '' + 'Daten werden geladen ...'; // setting up download links (3nd line) var xmlurl = sprintf('%s?formatted=true&includearrivals=true&eventid=%s', config['ajax']['eventURL'], id); @@ -112,7 +112,7 @@ function ajaxLoadEvents(stime, etime) { var etime = new Date(oTime.getTime()+50*1000.-oTime.getMilliseconds()); console.log(oTime, stime, etime); var mseedurl = sprintf('%s?net=GE,GR,RN&cha=EH?,HH?&start=%04d-%02d-%02dT%02d:%02d:%02d&end=%04d-%02d-%02dT%02d:%02d:%02d', config['ajax']['mseedURL'], Number(stime.getUTCFullYear()), Number(stime.getUTCMonth())+1, Number(stime.getUTCDate()), Number(stime.getUTCHours()), Number(stime.getUTCMinutes()), Number(stime.getUTCSeconds()), Number(etime.getUTCFullYear()), Number(etime.getUTCMonth())+1, Number(etime.getUTCDate()), Number(etime.getUTCHours()), Number(etime.getUTCMinutes()), Number(etime.getUTCSeconds())); - row += '' + row += '' + '' + sprintf('Download QuakeML or miniSEED', xmlurl, mseedurl) + ''; @@ -218,7 +218,7 @@ function ajaxLoadEventInfo(id) { }; }); row = row + ''; - $('#eventstable > tbody > tr.tablesorter-childRow > td[eventid='+id+']').html(row); + $('#eventstable > tbody > tr.event-details > td[eventid='+id+']').html(row); }); }, complete: function () {