Skip to content

Commit

Permalink
Merge pull request #54 from ISISComputingGroup/open_dataweb_in_newtab
Browse files Browse the repository at this point in the history
open instrument dataweb in new tab rather than iframe
  • Loading branch information
rerpha authored Dec 22, 2022
2 parents c2341e6 + 8cfd197 commit dc755d2
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions front_end/Overview/ibexOverview.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,7 @@ function open_wall_display(){


function on_click(elmnt) {
create_new_window();
var newIframe = document.createElement("iframe");

newIframe.src = "https://dataweb.isis.rl.ac.uk/IbexDataweb/default.html?Instrument="+ elmnt.childNodes[0].nodeValue
newIframe.width = "100%"
newIframe.height = "40%"
newIframe.frameborder = "0"

document.getElementById("internal").appendChild(newIframe);
window.open("https://dataweb.isis.rl.ac.uk/IbexDataweb/default.html?Instrument="+ elmnt.childNodes[0].nodeValue, '_blank').focus();
}

function display_data(data){
Expand Down

0 comments on commit dc755d2

Please sign in to comment.