mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Rely on more Python and less on mako, setup a small shared common mako file in config/plugins/interactive_environments/common/ie.mako. Move ie.js into client/galaxy/scripts/galaxy.interactive_environments.js and extract IPython's require config out so it doesn't have to directly reference client/galaxy/scripts/galaxy.interactive_environments.js (I doubt it is where that file actually should be).
1 line
965 B
JavaScript
1 line
965 B
JavaScript
function append_notebook(a){clear_main_area();$("#main").append('<iframe frameBorder="0" seamless="seamless" style="width: 100%; height: 100%; overflow:hidden;" scrolling="no" src="'+a+'"></iframe>')}function clear_main_area(){$("#spinner").remove();$("#main").children().remove()}function display_spinner(){$("#main").append('<img id="spinner" src="'+galaxy_root+'/static/style/largespinner.gif" style="position:absolute;margin:auto;top:0;left:0;right:0;bottom:0;">')}function test_ie_availability(b,c){var a=0;display_spinner();interval=setInterval(function(){$.ajax({url:b,xhrFields:{withCredentials:true},type:"GET",timeout:500,success:function(){console.log("Connected to IE, returning");clearInterval(interval);c()},error:function(f,d,e){a++;console.log("Request "+a);if(a>30){clearInterval(interval);clear_main_area();toastr.error("Could not connect to IE, contact your administrator","Error",{closeButton:true,timeOut:20000,tapToDismiss:false})}}})},1000)}; |