From eeed38882552d59caf973a56725e00ffb0d42e99 Mon Sep 17 00:00:00 2001 From: Roy Williams <roy@caltech.edu> Date: Fri, 10 Apr 2015 13:19:39 -0700 Subject: [PATCH] changed e.toElement to e.target in skymap viewer button so that Firefox works properly --- templates/gracedb/event_detail_script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/gracedb/event_detail_script.js b/templates/gracedb/event_detail_script.js index f992c29c9..29fc76661 100644 --- a/templates/gracedb/event_detail_script.js +++ b/templates/gracedb/event_detail_script.js @@ -978,7 +978,7 @@ require([ var sV_button = dom.byId(skymapName); if (sV_button) { on(sV_button, "click", function(e) { - sjurl = skymapJsonUrl + '/' + e.toElement.id + '.json'; + sjurl = skymapJsonUrl + '/' + e.target.id + '.json'; console.log("You clicked the button for "+sjurl); var embblog_json_url = embbEventLogListUrl; var embblog_json; -- GitLab