Skip to content

Commit

Permalink
Fixed issues #243 and #245
Browse files Browse the repository at this point in the history
  • Loading branch information
Helioviewer-Kirill committed Aug 13, 2018
1 parent 7276141 commit f2743aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions resources/js/Events/EventMarker.js
Original file line number Diff line number Diff line change
Expand Up @@ -785,11 +785,11 @@ var EventMarker = Class.extend(
}

var noaaSearch = '';
if( this.frm_name == "NOAA SWPC Observer"){
if( this.frm_name == "NOAA SWPC Observer" || this.frm_name == "HMI SHARP"){
var eventName = this.fixTitles(this.hv_labels_formatted[Object.keys(this.hv_labels_formatted)[0]]);
noaaSearch = '<div class="btn-label btn event-search-external text-btn" data-url=\'https://ui.adsabs.harvard.edu/#search/q="'+eventName+'"&sort=date desc\' target="_blank"><i class="fa fa-search fa-fw"></i>ADS search for '+eventName+'<i class="fa fa-external-link fa-fw"></i></div>\
<div style=\"clear:both\"></div>\
<div class="btn-label btn event-search-external text-btn" data-url="http://search.arxiv.org:8081/?query='+eventName+'&in=" target="_blank"><i class="fa fa-search fa-fw"></i>arXiv search for '+eventName+'<i class="fa fa-external-link fa-fw"></i></div>\
<div class="btn-label btn event-search-external text-btn" data-url="https://arxiv.org/search/?query='+eventName+'" target="_blank"><i class="fa fa-search fa-fw"></i>arXiv search for '+eventName+'<i class="fa fa-external-link fa-fw"></i></div>\
<div style=\"clear:both\"></div>';
}

Expand Down
4 changes: 2 additions & 2 deletions resources/js/UI/TimelineEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,11 +502,11 @@ var TimelineEvents = Class.extend({
}

var noaaSearch = '';
if( point.frm_name == "NOAA SWPC Observer"){
if( point.frm_name == "NOAA SWPC Observer" || point.frm_name == "HMI SHARP"){
var eventName = point.hv_labels_formatted[Object.keys(point.hv_labels_formatted)[0]];
noaaSearch = '<div class="btn-label btn event-search-external text-btn" style="line-height: 14px;" data-url=\'https://ui.adsabs.harvard.edu/#search/q="'+eventName+'"&sort=date desc\' target="_blank"><i class="fa fa-search fa-fw"></i>ADS search for '+eventName+'<i class="fa fa-external-link fa-fw"></i></div>\
<div style=\"clear:both\"></div>\
<div class="btn-label btn event-search-external text-btn" style="line-height: 14px;" data-url="http://search.arxiv.org:8081/?query='+eventName+'&in=" target="_blank"><i class="fa fa-search fa-fw"></i>arXiv search for '+eventName+'<i class="fa fa-external-link fa-fw"></i></div>\
<div class="btn-label btn event-search-external text-btn" style="line-height: 14px;" data-url="https://arxiv.org/search/?query='+eventName+'" target="_blank"><i class="fa fa-search fa-fw"></i>arXiv search for '+eventName+'<i class="fa fa-external-link fa-fw"></i></div>\
<div style=\"clear:both\"></div>';
}

Expand Down

0 comments on commit f2743aa

Please sign in to comment.