mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #997 from guerler/performance_001
Fix deferred dom removal
This commit is contained in:
@@ -34,9 +34,11 @@ define(['utils/utils', 'mvc/tools', 'mvc/upload/upload-view', 'mvc/ui/ui-misc',
|
||||
));
|
||||
}
|
||||
},
|
||||
display: function( $el ) {
|
||||
display: function( view ) {
|
||||
this.prev && this.prev.remove();
|
||||
this.prev = view;
|
||||
this.$( '#galaxy_main' ).hide();
|
||||
this.$( '#center-panel' ).empty().scrollTop( 0 ).append( $el ).show();
|
||||
this.$( '#center-panel' ).scrollTop( 0 ).append( view.$el ).show();
|
||||
},
|
||||
_template: function() {
|
||||
return '<div style="position: absolute; width: 100%; height: 100%">' +
|
||||
|
||||
@@ -170,7 +170,7 @@ var DatasetListItemEdit = _super.extend(
|
||||
ev.preventDefault();
|
||||
var form = new ToolsForm.View({'job_id' : creating_job});
|
||||
form.deferred.execute(function(){
|
||||
Galaxy.app.display(form.$el);
|
||||
Galaxy.app.display(form);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@@ -531,7 +531,7 @@ var ToolLinkView = BaseView.extend({
|
||||
e.preventDefault();
|
||||
var form = new ToolsForm.View( { id : self.model.id, version : self.model.get('version') } );
|
||||
form.deferred.execute(function() {
|
||||
Galaxy.app.display( form.$el );
|
||||
Galaxy.app.display( form );
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -24,6 +24,15 @@ define(['utils/utils', 'utils/deferred', 'mvc/ui/ui-misc', 'mvc/form/form-view',
|
||||
}
|
||||
},
|
||||
|
||||
/** Wait for deferred build processes before removal */
|
||||
remove: function() {
|
||||
var self = this;
|
||||
this.$el.hide();
|
||||
this.deferred.execute(function(){
|
||||
Backbone.View.prototype.remove.call(self);
|
||||
});
|
||||
},
|
||||
|
||||
/** Build form */
|
||||
_buildForm: function(options) {
|
||||
// link this
|
||||
@@ -87,32 +96,17 @@ define(['utils/utils', 'utils/deferred', 'mvc/ui/ui-misc', 'mvc/form/form-view',
|
||||
url : build_url,
|
||||
data : build_data,
|
||||
success : function(new_model) {
|
||||
// rebuild form
|
||||
self._buildForm(new_model['tool_model'] || new_model);
|
||||
|
||||
// show version message
|
||||
!hide_message && self.form.message.update({
|
||||
status : 'success',
|
||||
message : 'Now you are using \'' + self.options.name + '\' version ' + self.options.version + '.',
|
||||
persistent : false
|
||||
});
|
||||
|
||||
// process completed
|
||||
self.deferred.done(process_id);
|
||||
|
||||
// log success
|
||||
console.debug('tools-form::initialize() - Initial tool model ready.');
|
||||
console.debug(new_model);
|
||||
self.deferred.done(process_id);
|
||||
},
|
||||
error : function(response) {
|
||||
// process completed
|
||||
self.deferred.done(process_id);
|
||||
|
||||
// log error
|
||||
console.debug('tools-form::initialize() - Initial tool model request failed.');
|
||||
console.debug(response);
|
||||
|
||||
// show error
|
||||
var error_message = ( response && response.err_msg ) || 'Uncaught error.';
|
||||
if ( self.$el.is(':empty') ) {
|
||||
self.$el.prepend((new Ui.Message({
|
||||
@@ -132,6 +126,9 @@ define(['utils/utils', 'utils/deferred', 'mvc/ui/ui-misc', 'mvc/form/form-view',
|
||||
}
|
||||
});
|
||||
}
|
||||
console.debug('tools-form::initialize() - Initial tool model request failed.');
|
||||
console.debug(response);
|
||||
self.deferred.done(process_id);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
@@ -5,18 +5,13 @@ define(['utils/utils'], function(Utils) {
|
||||
* This class provides an alternative way to handle deferred processes. It makes it easy to handle multiple and overlapping sets of deferred processes.
|
||||
*/
|
||||
return Backbone.Model.extend({
|
||||
// callback queue
|
||||
queue: [],
|
||||
|
||||
// list of currently registered processes
|
||||
process: {},
|
||||
|
||||
// process counter
|
||||
counter: 0,
|
||||
|
||||
/** Initialize
|
||||
*/
|
||||
initialize: function(){
|
||||
this.queue = [];
|
||||
this.process = {};
|
||||
this.counter = 0;
|
||||
this.queue_id = Utils.uid();
|
||||
this.on('refresh', function() {
|
||||
if (this.queue.length > 0 && this.ready()) {
|
||||
var callback = this.queue[0];
|
||||
@@ -37,7 +32,7 @@ return Backbone.Model.extend({
|
||||
/** This is called to register a new process
|
||||
*/
|
||||
register: function() {
|
||||
var id = Utils.uid();
|
||||
var id = this.queue_id + ':' + Utils.uid();
|
||||
this.process[id] = true;
|
||||
this.counter++;
|
||||
console.debug('Deferred:register() - Register ' + id);
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"app-analysis.js","sources":["../../../src/mvc/app/app-analysis.js"],"names":["define","Utils","Tools","Upload","Ui","optionsMenu","HistoryPanel","ToolsForm","CenterPanel","Backbone","View","extend","initialize","options","this","merge","setElement","_template","self","$","on","location","contentWindow","host","show","empty","hide","Galaxy","trigger","fullpath","pathname","search","hash","params","tool_id","job_id","id","display","$el","prop","root","workflow_id","m_c","m_a","config","require_login","user","scrollTop","append","LeftPanel","tool_search","ToolSearch","spinner_url","search_url","hidden","tools","ToolCollection","toolbox","tool_panel","ToolPanel","layout","toolbox_in_panel","tool_panel_view","ToolPanelView","model","toolPanel","get","size","render","prepend","_templateTool","title","href","i","stored_workflow_menu_entries","m","stored_workflow","name","encoded_stored_workflow_id","click","parent","handle_minwidth_hint","attr","upload","components","header","buttons","RightPanel","headerButtons","buttonRefresh","ButtonLink","cls","icon","onclick","top","currHistoryPanel","loadCurrentHistory","push","buttonOptions","target","isAnonymous","buttonViewMulti","body","historyOptionsMenu","anonymous","purgeAllowed","allow_user_dataset_purge","CurrentHistoryPanel","el","linkTarget","$scrollContainer","connectToQuotaMeter","quotaMeter","listenToGalaxy","left","center","right"],"mappings":"AAAAA,QAAQ,cAAe,YAAa,yBAA0B,iBACtD,2BAA4B,yCAA0C,wBAC1E,SAAUC,EAAOC,EAAOC,EAAQC,EAAIC,EAAaC,EAAcC,GAG/D,GAAIC,GAAcC,SAASC,KAAKC,QAC5BC,WAAY,SAAUC,GAClBC,KAAKD,QAAUZ,EAAMc,MAAOF,MAC5BC,KAAKE,WAAYF,KAAKG,YACtB,IA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BACVmC,MAAU,kBACVoB,IAAU,sBACVQ,OAAU,cACVP,KAAU,YACVpB,KAAU7C,OAAOa,KAAO,wBAK5B,IAHAgD,EAAcS,KAAMC,IAGfvE,OAAOmB,KAAKsD,cAAe,CAC5B,GAAIC,GAAkB,GAAIjG,GAAGsF,YACzBtD,GAAU,4BACVmC,MAAU,qBACVoB,IAAU,sBACVC,KAAU,gBACVpB,KAAU7C,OAAOa,KAAO,yBAE5BgD,GAAcS,KAAMI,GAIxBvF,KAAKsE,YACDC,QACId,MAAU,UACVoB,IAAU,uBACVL,QAAUE,GAEdc,MACIX,IAAU,kCAKlBhE,OAAO4E,mBAAqBlG,EAAa6F,EAAc5D,KACnDkE,UAAe7E,OAAOmB,KAAKsD,cAC3BK,aAAe9E,OAAOiB,OAAO8D,yBAC7BlE,KAAeb,OAAOa,OAI1Bb,OAAOoE,iBAAmB,GAAIzF,GAAaqG,qBACvCC,GAAkB9F,KAAKwB,IACvBmE,aAAkB9E,OAAOiB,OAAO8D,yBAChCG,WAAkB,cAClBC,iBAAkB,WAAY,MAAOhG,MAAKwB,IAAI0C,YAElDrD,OAAOoE,iBAAiBgB,oBAAqBpF,OAAOqF,YACpDrF,OAAOoE,iBAAiBkB,eAAgBtF,QACxCA,OAAOoE,iBAAiBC,sBAI5B/E,UAAW,WACP,MAAO,4DAIf,QACIiG,KAAUjE,EACVkE,OAAU3G,EACV4G,MAAU7B"}
|
||||
{"version":3,"file":"app-analysis.js","sources":["../../../src/mvc/app/app-analysis.js"],"names":["define","Utils","Tools","Upload","Ui","optionsMenu","HistoryPanel","ToolsForm","CenterPanel","Backbone","View","extend","initialize","options","this","merge","setElement","_template","self","$","on","location","contentWindow","host","show","empty","hide","Galaxy","trigger","fullpath","pathname","search","hash","params","tool_id","job_id","id","display","$el","prop","root","workflow_id","m_c","m_a","config","require_login","user","view","prev","remove","scrollTop","append","LeftPanel","tool_search","ToolSearch","spinner_url","search_url","hidden","tools","ToolCollection","toolbox","tool_panel","ToolPanel","layout","toolbox_in_panel","tool_panel_view","ToolPanelView","model","toolPanel","get","size","render","prepend","_templateTool","title","href","i","stored_workflow_menu_entries","m","stored_workflow","name","encoded_stored_workflow_id","click","parent","handle_minwidth_hint","attr","upload","components","header","buttons","RightPanel","headerButtons","buttonRefresh","ButtonLink","cls","icon","onclick","top","currHistoryPanel","loadCurrentHistory","push","buttonOptions","target","isAnonymous","buttonViewMulti","body","historyOptionsMenu","anonymous","purgeAllowed","allow_user_dataset_purge","CurrentHistoryPanel","el","linkTarget","$scrollContainer","connectToQuotaMeter","quotaMeter","listenToGalaxy","left","center","right"],"mappings":"AAAAA,QAAQ,cAAe,YAAa,yBAA0B,iBACtD,2BAA4B,yCAA0C,wBAC1E,SAAUC,EAAOC,EAAOC,EAAQC,EAAIC,EAAaC,EAAcC,GAG/D,GAAIC,GAAcC,SAASC,KAAKC,QAC5BC,WAAY,SAAUC,GAClBC,KAAKD,QAAUZ,EAAMc,MAAOF,MAC5BC,KAAKE,WAAYF,KAAKG,YACtB,IAAIC,GAAOJ,IACXA,MAAKK,EAAG,gBAAiBC,GAAI,OAAQ,WACjC,GAAIC,GAAWP,KAAKQ,eAAiBR,KAAKQ,cAAcD,QACnDA,IAAYA,EAASE,OACtBJ,EAAGL,MAAOU,OACVN,EAAKC,EAAG,iBAAkBM,QAAQC,OAClCC,OAAOC,QAAS,oBACZC,SAAUR,EAASS,SAAWT,EAASU,OAASV,EAASW,KACzDF,SAAUT,EAASS,SACnBC,OAAUV,EAASU,OACnBC,KAAUX,EAASW,SAI/B,IAAIC,GAASd,EAAER,UAAYgB,OAAOM,OACV,aAAnBA,EAAOC,UAA2BD,EAAOC,SAAWD,EAAOE,SAC5DF,EAAOC,UAAaD,EAAOG,GAAKH,EAAOC,SACvCpB,KAAKuB,QAAS,GAAM9B,GAAUG,KAAMuB,GAAWK,MAE/CxB,KAAKK,EAAG,gBAAiBoB,KAAM,MAAOZ,OAAOa,MACvCP,EAAOQ,aAAiB,mBAAqBR,EAAO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mB,GAAI5F,GAAawG,qBACvCC,GAAkBjG,KAAKwB,IACvBsE,aAAkBjF,OAAOiB,OAAOiE,yBAChCG,WAAkB,cAClBC,iBAAkB,WAAY,MAAOnG,MAAKwB,IAAI6C,YAElDxD,OAAOuE,iBAAiBgB,oBAAqBvF,OAAOwF,YACpDxF,OAAOuE,iBAAiBkB,eAAgBzF,QACxCA,OAAOuE,iBAAiBC,sBAI5BlF,UAAW,WACP,MAAO,4DAIf,QACIoG,KAAUjE,EACVkE,OAAU9G,EACV+G,MAAU7B"}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
{"version":3,"file":"deferred.js","sources":["../../src/utils/deferred.js"],"names":["define","Utils","Backbone","Model","extend","queue","process","counter","initialize","this","on","length","ready","callback","splice","execute","push","trigger","register","id","uid","console","debug","done","reset"],"mappings":"AACAA,QAAQ,eAAgB,SAASC,GAKjC,MAAOC,UAASC,MAAMC,QAElBC,SAGAC,WAGAC,QAAS,EAITC,WAAY,WACRC,KAAKC,GAAG,UAAW,WACf,GAAID,KAAKJ,MAAMM,OAAS,GAAKF,KAAKG,QAAS,CACvC,GAAIC,GAAWJ,KAAKJ,MAAM,EAC1BI,MAAKJ,MAAMS,OAAO,EAAG,GACrBD,GAAYA,QAQxBE,QAAS,SAASF,GACdJ,KAAKJ,MAAMW,KAAKH,GAChBJ,KAAKQ,QAAQ,YAKjBC,SAAU,WACN,GAAIC,GAAKlB,EAAMmB,KAIf,OAHAX,MAAKH,QAAQa,IAAM,EACnBV,KAAKF,UACLc,QAAQC,MAAM,kCAAoCH,GAC3CA,GAKXI,KAAM,SAASJ,GACPV,KAAKH,QAAQa,WACNV,MAAKH,QAAQa,GACpBV,KAAKF,UACLc,QAAQC,MAAM,gCAAkCH,GAChDV,KAAKQ,QAAQ,aAMrBO,MAAO,WACHf,KAAKJ,UAKTO,MAAO,WACH,MAAwB,IAAhBH,KAAKF"}
|
||||
{"version":3,"file":"deferred.js","sources":["../../src/utils/deferred.js"],"names":["define","Utils","Backbone","Model","extend","initialize","this","queue","process","counter","queue_id","uid","on","length","ready","callback","splice","execute","push","trigger","register","id","console","debug","done","reset"],"mappings":"AACAA,QAAQ,eAAgB,SAASC,GAKjC,MAAOC,UAASC,MAAMC,QAGlBC,WAAY,WACRC,KAAKC,SACLD,KAAKE,WACLF,KAAKG,QAAU,EACfH,KAAKI,SAAWT,EAAMU,MACtBL,KAAKM,GAAG,UAAW,WACf,GAAIN,KAAKC,MAAMM,OAAS,GAAKP,KAAKQ,QAAS,CACvC,GAAIC,GAAWT,KAAKC,MAAM,EAC1BD,MAAKC,MAAMS,OAAO,EAAG,GACrBD,GAAYA,QAQxBE,QAAS,SAASF,GACdT,KAAKC,MAAMW,KAAKH,GAChBT,KAAKa,QAAQ,YAKjBC,SAAU,WACN,GAAIC,GAAKf,KAAKI,SAAW,IAAMT,EAAMU,KAIrC,OAHAL,MAAKE,QAAQa,IAAM,EACnBf,KAAKG,UACLa,QAAQC,MAAM,kCAAoCF,GAC3CA,GAKXG,KAAM,SAASH,GACPf,KAAKE,QAAQa,WACNf,MAAKE,QAAQa,GACpBf,KAAKG,UACLa,QAAQC,MAAM,gCAAkCF,GAChDf,KAAKa,QAAQ,aAMrBM,MAAO,WACHnB,KAAKC,UAKTO,MAAO,WACH,MAAwB,IAAhBR,KAAKG"}
|
||||
@@ -1,2 +1,2 @@
|
||||
define(["utils/utils","mvc/tools","mvc/upload/upload-view","mvc/ui/ui-misc","mvc/history/options-menu","mvc/history/history-panel-edit-current","mvc/tools/tools-form"],function(a,b,c,d,e,f,g){var h=Backbone.View.extend({initialize:function(b){this.options=a.merge(b,{}),this.setElement(this._template());var c=this;this.$("#galaxy_main").on("load",function(){var a=this.contentWindow&&this.contentWindow.location;a&&a.host&&($(this).show(),c.$("#center-panel").empty().hide(),Galaxy.trigger("galaxy_main:load",{fullpath:a.pathname+a.search+a.hash,pathname:a.pathname,search:a.search,hash:a.hash}))});var d=$.extend({},Galaxy.params);"upload1"!==d.tool_id&&(d.tool_id||d.job_id)?(d.tool_id&&(d.id=d.tool_id),this.display(new g.View(d).$el)):this.$("#galaxy_main").prop("src",Galaxy.root+(d.workflow_id&&"workflow/run?id="+d.workflow_id||d.m_c&&d.m_c+"/"+d.m_a||Galaxy.config.require_login&&!Galaxy.user.id&&"user/login"||"root/welcome"))},display:function(a){this.$("#galaxy_main").hide(),this.$("#center-panel").empty().scrollTop(0).append(a).show()},_template:function(){return'<div style="position: absolute; width: 100%; height: 100%"><iframe name="galaxy_main" id="galaxy_main" frameborder="0" style="position: absolute; width: 100%; height: 100%;"/><div id="center-panel" style="position: absolute; width: 100%; height: 100%; padding: 10px; overflow: auto;"/></div>'}}),i=Backbone.View.extend({initialize:function(d){if(this.options=a.merge(d,{}),this.setElement(this._template()),Galaxy.user.id||!Galaxy.config.require_login){var e=new b.ToolSearch({spinner_url:d.spinner_url,search_url:d.search_url,hidden:!1}),f=new b.ToolCollection(d.toolbox),g=new b.ToolPanel({tool_search:e,tools:f,layout:d.toolbox_in_panel});tool_panel_view=new b.ToolPanelView({model:g}),Galaxy.toolPanel=g,g.get("layout").size()>0&&(tool_panel_view.render(),this.$(".toolMenu").show()),this.$el.prepend(tool_panel_view.$el),this.$("#internal-workflows").append(this._templateTool({title:"All workflows",href:"workflow/list_for_run"}));for(var h in d.stored_workflow_menu_entries){var i=d.stored_workflow_menu_entries[h];this.$("#internal-workflows").append(this._templateTool({title:i.stored_workflow.name,href:"workflow/run?id="+i.encoded_stored_workflow_id}))}this.$("a[minsizehint]").click(function(){parent.handle_minwidth_hint&&parent.handle_minwidth_hint($(this).attr("minsizehint"))}),Galaxy.upload=new c(d),this.components={header:{title:"Tools",buttons:[Galaxy.upload]}}}},_templateTool:function(a){return'<div class="toolTitle"><a href="'+Galaxy.root+a.href+'" target="galaxy_main">'+a.title+"</a></div>"},_template:function(){return'<div class="toolMenuContainer"><div class="toolMenu" style="display: none"><div id="search-no-results" style="display: none; padding-top: 5px"><em><strong>Search did not match any tools.</strong></em></div></div><div class="toolSectionPad"/><div class="toolSectionPad"/><div class="toolSectionTitle" id="title_XXinternalXXworkflow"><span>Workflows</span></div><div id="internal-workflows" class="toolSectionBody"><div class="toolSectionBg"/></div></div>'}}),j=Backbone.View.extend({initialize:function(b){this.options=a.merge(b,{}),this.setElement(this._template());var c=[],g=new d.ButtonLink({id:"history-refresh-button",title:"Refresh history",cls:"panel-header-button",icon:"fa fa-refresh",onclick:function(){top.Galaxy&&top.Galaxy.currHistoryPanel&&top.Galaxy.currHistoryPanel.loadCurrentHistory()}});c.push(g);var h=new d.ButtonLink({id:"history-options-button",title:"History options",cls:"panel-header-button",target:"galaxy_main",icon:"fa fa-cog",href:Galaxy.root+"root/history_options"});if(c.push(h),!Galaxy.user.isAnonymous()){var i=new d.ButtonLink({id:"history-view-multi-button",title:"View all histories",cls:"panel-header-button",icon:"fa fa-columns",href:Galaxy.root+"history/view_multiple"});c.push(i)}this.components={header:{title:"History",cls:"history-panel-header",buttons:c},body:{cls:"unified-panel-body-background"}},Galaxy.historyOptionsMenu=e(h.$el,{anonymous:Galaxy.user.isAnonymous(),purgeAllowed:Galaxy.config.allow_user_dataset_purge,root:Galaxy.root}),Galaxy.currHistoryPanel=new f.CurrentHistoryPanel({el:this.$el,purgeAllowed:Galaxy.config.allow_user_dataset_purge,linkTarget:"galaxy_main",$scrollContainer:function(){return this.$el.parent()}}),Galaxy.currHistoryPanel.connectToQuotaMeter(Galaxy.quotaMeter),Galaxy.currHistoryPanel.listenToGalaxy(Galaxy),Galaxy.currHistoryPanel.loadCurrentHistory()},_template:function(){return'<div id="current-history-panel" class="history-panel"/>'}});return{left:i,center:h,right:j}});
|
||||
define(["utils/utils","mvc/tools","mvc/upload/upload-view","mvc/ui/ui-misc","mvc/history/options-menu","mvc/history/history-panel-edit-current","mvc/tools/tools-form"],function(a,b,c,d,e,f,g){var h=Backbone.View.extend({initialize:function(b){this.options=a.merge(b,{}),this.setElement(this._template());var c=this;this.$("#galaxy_main").on("load",function(){var a=this.contentWindow&&this.contentWindow.location;a&&a.host&&($(this).show(),c.$("#center-panel").empty().hide(),Galaxy.trigger("galaxy_main:load",{fullpath:a.pathname+a.search+a.hash,pathname:a.pathname,search:a.search,hash:a.hash}))});var d=$.extend({},Galaxy.params);"upload1"!==d.tool_id&&(d.tool_id||d.job_id)?(d.tool_id&&(d.id=d.tool_id),this.display(new g.View(d).$el)):this.$("#galaxy_main").prop("src",Galaxy.root+(d.workflow_id&&"workflow/run?id="+d.workflow_id||d.m_c&&d.m_c+"/"+d.m_a||Galaxy.config.require_login&&!Galaxy.user.id&&"user/login"||"root/welcome"))},display:function(a){this.prev&&this.prev.remove(),this.prev=a,this.$("#galaxy_main").hide(),this.$("#center-panel").scrollTop(0).append(a.$el).show()},_template:function(){return'<div style="position: absolute; width: 100%; height: 100%"><iframe name="galaxy_main" id="galaxy_main" frameborder="0" style="position: absolute; width: 100%; height: 100%;"/><div id="center-panel" style="position: absolute; width: 100%; height: 100%; padding: 10px; overflow: auto;"/></div>'}}),i=Backbone.View.extend({initialize:function(d){if(this.options=a.merge(d,{}),this.setElement(this._template()),Galaxy.user.id||!Galaxy.config.require_login){var e=new b.ToolSearch({spinner_url:d.spinner_url,search_url:d.search_url,hidden:!1}),f=new b.ToolCollection(d.toolbox),g=new b.ToolPanel({tool_search:e,tools:f,layout:d.toolbox_in_panel});tool_panel_view=new b.ToolPanelView({model:g}),Galaxy.toolPanel=g,g.get("layout").size()>0&&(tool_panel_view.render(),this.$(".toolMenu").show()),this.$el.prepend(tool_panel_view.$el),this.$("#internal-workflows").append(this._templateTool({title:"All workflows",href:"workflow/list_for_run"}));for(var h in d.stored_workflow_menu_entries){var i=d.stored_workflow_menu_entries[h];this.$("#internal-workflows").append(this._templateTool({title:i.stored_workflow.name,href:"workflow/run?id="+i.encoded_stored_workflow_id}))}this.$("a[minsizehint]").click(function(){parent.handle_minwidth_hint&&parent.handle_minwidth_hint($(this).attr("minsizehint"))}),Galaxy.upload=new c(d),this.components={header:{title:"Tools",buttons:[Galaxy.upload]}}}},_templateTool:function(a){return'<div class="toolTitle"><a href="'+Galaxy.root+a.href+'" target="galaxy_main">'+a.title+"</a></div>"},_template:function(){return'<div class="toolMenuContainer"><div class="toolMenu" style="display: none"><div id="search-no-results" style="display: none; padding-top: 5px"><em><strong>Search did not match any tools.</strong></em></div></div><div class="toolSectionPad"/><div class="toolSectionPad"/><div class="toolSectionTitle" id="title_XXinternalXXworkflow"><span>Workflows</span></div><div id="internal-workflows" class="toolSectionBody"><div class="toolSectionBg"/></div></div>'}}),j=Backbone.View.extend({initialize:function(b){this.options=a.merge(b,{}),this.setElement(this._template());var c=[],g=new d.ButtonLink({id:"history-refresh-button",title:"Refresh history",cls:"panel-header-button",icon:"fa fa-refresh",onclick:function(){top.Galaxy&&top.Galaxy.currHistoryPanel&&top.Galaxy.currHistoryPanel.loadCurrentHistory()}});c.push(g);var h=new d.ButtonLink({id:"history-options-button",title:"History options",cls:"panel-header-button",target:"galaxy_main",icon:"fa fa-cog",href:Galaxy.root+"root/history_options"});if(c.push(h),!Galaxy.user.isAnonymous()){var i=new d.ButtonLink({id:"history-view-multi-button",title:"View all histories",cls:"panel-header-button",icon:"fa fa-columns",href:Galaxy.root+"history/view_multiple"});c.push(i)}this.components={header:{title:"History",cls:"history-panel-header",buttons:c},body:{cls:"unified-panel-body-background"}},Galaxy.historyOptionsMenu=e(h.$el,{anonymous:Galaxy.user.isAnonymous(),purgeAllowed:Galaxy.config.allow_user_dataset_purge,root:Galaxy.root}),Galaxy.currHistoryPanel=new f.CurrentHistoryPanel({el:this.$el,purgeAllowed:Galaxy.config.allow_user_dataset_purge,linkTarget:"galaxy_main",$scrollContainer:function(){return this.$el.parent()}}),Galaxy.currHistoryPanel.connectToQuotaMeter(Galaxy.quotaMeter),Galaxy.currHistoryPanel.listenToGalaxy(Galaxy),Galaxy.currHistoryPanel.loadCurrentHistory()},_template:function(){return'<div id="current-history-panel" class="history-panel"/>'}});return{left:i,center:h,right:j}});
|
||||
//# sourceMappingURL=../../../maps/mvc/app/app-analysis.js.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +1,2 @@
|
||||
define(["utils/utils","utils/deferred","mvc/ui/ui-misc","mvc/form/form-view","mvc/tools/tools-template","mvc/citation/citation-model","mvc/citation/citation-view"],function(a,b,c,d,e,f,g){return Backbone.View.extend({initialize:function(c){this.options=a.merge(c,{}),this.setElement("<div/>"),this.deferred=new b,c.inputs?this._buildForm(c):this._buildModel(c,!0)},_buildForm:function(b){var c=this;this.options=a.merge(b,this.options),this.options=a.merge({icon:"fa-wrench",title:"<b>"+b.name+"</b> "+b.description+" (Galaxy Tool Version "+b.version+")",operations:this._operations(),onchange:function(){c.deferred.reset(),c.deferred.execute(function(){c._updateModel()})}},this.options),this.options.customize&&this.options.customize(this.options),this.form=new d(this.options),this._footer(),this.$el.empty(),this.$el.append(this.form.$el)},_buildModel:function(b,d){var e=this;this.options.id=b.id,this.options.version=b.version;var f="",g={};b.job_id?f=Galaxy.root+"api/jobs/"+b.job_id+"/build_for_rerun":(f=Galaxy.root+"api/tools/"+b.id+"/build",Galaxy.params&&Galaxy.params.tool_id==b.id&&(g=$.extend({},Galaxy.params),b.version&&(g.tool_version=b.version)));var h=this.deferred.register();a.request({type:"GET",url:f,data:g,success:function(a){e._buildForm(a.tool_model||a),!d&&e.form.message.update({status:"success",message:"Now you are using '"+e.options.name+"' version "+e.options.version+".",persistent:!1}),e.deferred.done(h),console.debug("tools-form::initialize() - Initial tool model ready."),console.debug(a)},error:function(a){e.deferred.done(h),console.debug("tools-form::initialize() - Initial tool model request failed."),console.debug(a);var b=a&&a.err_msg||"Uncaught error.";e.$el.is(":empty")?e.$el.prepend(new c.Message({message:b,status:"danger",persistent:!0,large:!0}).$el):Galaxy.modal.show({title:"Tool request failed",body:b,buttons:{Close:function(){Galaxy.modal.hide()}}})}})},_updateModel:function(){var b=this.options.update_url||Galaxy.root+"api/tools/"+this.options.id+"/build",c=this,d=this.form,e={tool_id:this.options.id,tool_version:this.options.version,inputs:$.extend(!0,{},c.form.data.create())};d.wait(!0);var f=this.deferred.register();console.debug("tools-form-base::_updateModel() - Sending current state (see below)."),console.debug(e),a.request({type:"POST",url:b,data:e,success:function(a){c.form.update(a.tool_model||a),c.options.update&&c.options.update(a),d.wait(!1),console.debug("tools-form-base::_updateModel() - Received new model (see below)."),console.debug(a),c.deferred.done(f)},error:function(a){c.deferred.done(f),console.debug("tools-form-base::_updateModel() - Refresh request failed."),console.debug(a)}})},_operations:function(){var a=this,b=this.options,d=new c.ButtonMenu({icon:"fa-cubes",title:!b.narrow&&"Versions"||null,tooltip:"Select another tool version"});if(!b.is_workflow&&b.versions&&b.versions.length>1)for(var f in b.versions){var g=b.versions[f];g!=b.version&&d.addMenu({title:"Switch to "+g,version:g,icon:"fa-cube",onclick:function(){var c=b.id.replace(b.version,this.version),d=this.version;a.deferred.reset(),a.deferred.execute(function(){a._buildModel({id:c,version:d})})}})}else d.$el.hide();var h=new c.ButtonMenu({icon:"fa-caret-down",title:!b.narrow&&"Options"||null,tooltip:"View available options"});return b.biostar_url&&(h.addMenu({icon:"fa-question-circle",title:"Question?",tooltip:"Ask a question about this tool (Biostar)",onclick:function(){window.open(b.biostar_url+"/p/new/post/")}}),h.addMenu({icon:"fa-search",title:"Search",tooltip:"Search help for this tool (Biostar)",onclick:function(){window.open(b.biostar_url+"/local/search/page/?q="+b.name)}})),h.addMenu({icon:"fa-share",title:"Share",tooltip:"Share this tool",onclick:function(){prompt("Copy to clipboard: Ctrl+C, Enter",window.location.origin+Galaxy.root+"root?tool_id="+b.id)}}),Galaxy.user&&Galaxy.user.get("is_admin")&&h.addMenu({icon:"fa-download",title:"Download",tooltip:"Download this tool",onclick:function(){window.location.href=Galaxy.root+"api/tools/"+b.id+"/download"}}),b.requirements&&b.requirements.length>0&&h.addMenu({icon:"fa-info-circle",title:"Requirements",tooltip:"Display tool requirements",onclick:function(){this.visible?(this.visible=!1,a.form.message.update({message:""})):(this.visible=!0,a.form.message.update({persistent:!0,message:e.requirements(b),status:"info"}))}}),b.sharable_url&&h.addMenu({icon:"fa-external-link",title:"See in Tool Shed",tooltip:"Access the repository",onclick:function(){window.open(b.sharable_url)}}),{menu:h,versions:d}},_footer:function(){var a=this.options;if(""!=a.help&&this.form.$el.append(e.help(a)),a.citations){var b=$("<div/>"),c=new f.ToolCitationCollection;c.tool_id=a.id;var d=new g.CitationListView({el:b,collection:c});d.render(),c.fetch(),this.form.$el.append(b)}}})});
|
||||
define(["utils/utils","utils/deferred","mvc/ui/ui-misc","mvc/form/form-view","mvc/tools/tools-template","mvc/citation/citation-model","mvc/citation/citation-view"],function(a,b,c,d,e,f,g){return Backbone.View.extend({initialize:function(c){this.options=a.merge(c,{}),this.setElement("<div/>"),this.deferred=new b,c.inputs?this._buildForm(c):this._buildModel(c,!0)},remove:function(){var a=this;this.$el.hide(),this.deferred.execute(function(){Backbone.View.prototype.remove.call(a)})},_buildForm:function(b){var c=this;this.options=a.merge(b,this.options),this.options=a.merge({icon:"fa-wrench",title:"<b>"+b.name+"</b> "+b.description+" (Galaxy Tool Version "+b.version+")",operations:this._operations(),onchange:function(){c.deferred.reset(),c.deferred.execute(function(){c._updateModel()})}},this.options),this.options.customize&&this.options.customize(this.options),this.form=new d(this.options),this._footer(),this.$el.empty(),this.$el.append(this.form.$el)},_buildModel:function(b,d){var e=this;this.options.id=b.id,this.options.version=b.version;var f="",g={};b.job_id?f=Galaxy.root+"api/jobs/"+b.job_id+"/build_for_rerun":(f=Galaxy.root+"api/tools/"+b.id+"/build",Galaxy.params&&Galaxy.params.tool_id==b.id&&(g=$.extend({},Galaxy.params),b.version&&(g.tool_version=b.version)));var h=this.deferred.register();a.request({type:"GET",url:f,data:g,success:function(a){e._buildForm(a.tool_model||a),!d&&e.form.message.update({status:"success",message:"Now you are using '"+e.options.name+"' version "+e.options.version+".",persistent:!1}),console.debug("tools-form::initialize() - Initial tool model ready."),console.debug(a),e.deferred.done(h)},error:function(a){var b=a&&a.err_msg||"Uncaught error.";e.$el.is(":empty")?e.$el.prepend(new c.Message({message:b,status:"danger",persistent:!0,large:!0}).$el):Galaxy.modal.show({title:"Tool request failed",body:b,buttons:{Close:function(){Galaxy.modal.hide()}}}),console.debug("tools-form::initialize() - Initial tool model request failed."),console.debug(a),e.deferred.done(h)}})},_updateModel:function(){var b=this.options.update_url||Galaxy.root+"api/tools/"+this.options.id+"/build",c=this,d=this.form,e={tool_id:this.options.id,tool_version:this.options.version,inputs:$.extend(!0,{},c.form.data.create())};d.wait(!0);var f=this.deferred.register();console.debug("tools-form-base::_updateModel() - Sending current state (see below)."),console.debug(e),a.request({type:"POST",url:b,data:e,success:function(a){c.form.update(a.tool_model||a),c.options.update&&c.options.update(a),d.wait(!1),console.debug("tools-form-base::_updateModel() - Received new model (see below)."),console.debug(a),c.deferred.done(f)},error:function(a){c.deferred.done(f),console.debug("tools-form-base::_updateModel() - Refresh request failed."),console.debug(a)}})},_operations:function(){var a=this,b=this.options,d=new c.ButtonMenu({icon:"fa-cubes",title:!b.narrow&&"Versions"||null,tooltip:"Select another tool version"});if(!b.is_workflow&&b.versions&&b.versions.length>1)for(var f in b.versions){var g=b.versions[f];g!=b.version&&d.addMenu({title:"Switch to "+g,version:g,icon:"fa-cube",onclick:function(){var c=b.id.replace(b.version,this.version),d=this.version;a.deferred.reset(),a.deferred.execute(function(){a._buildModel({id:c,version:d})})}})}else d.$el.hide();var h=new c.ButtonMenu({icon:"fa-caret-down",title:!b.narrow&&"Options"||null,tooltip:"View available options"});return b.biostar_url&&(h.addMenu({icon:"fa-question-circle",title:"Question?",tooltip:"Ask a question about this tool (Biostar)",onclick:function(){window.open(b.biostar_url+"/p/new/post/")}}),h.addMenu({icon:"fa-search",title:"Search",tooltip:"Search help for this tool (Biostar)",onclick:function(){window.open(b.biostar_url+"/local/search/page/?q="+b.name)}})),h.addMenu({icon:"fa-share",title:"Share",tooltip:"Share this tool",onclick:function(){prompt("Copy to clipboard: Ctrl+C, Enter",window.location.origin+Galaxy.root+"root?tool_id="+b.id)}}),Galaxy.user&&Galaxy.user.get("is_admin")&&h.addMenu({icon:"fa-download",title:"Download",tooltip:"Download this tool",onclick:function(){window.location.href=Galaxy.root+"api/tools/"+b.id+"/download"}}),b.requirements&&b.requirements.length>0&&h.addMenu({icon:"fa-info-circle",title:"Requirements",tooltip:"Display tool requirements",onclick:function(){this.visible?(this.visible=!1,a.form.message.update({message:""})):(this.visible=!0,a.form.message.update({persistent:!0,message:e.requirements(b),status:"info"}))}}),b.sharable_url&&h.addMenu({icon:"fa-external-link",title:"See in Tool Shed",tooltip:"Access the repository",onclick:function(){window.open(b.sharable_url)}}),{menu:h,versions:d}},_footer:function(){var a=this.options;if(""!=a.help&&this.form.$el.append(e.help(a)),a.citations){var b=$("<div/>"),c=new f.ToolCitationCollection;c.tool_id=a.id;var d=new g.CitationListView({el:b,collection:c});d.render(),c.fetch(),this.form.$el.append(b)}}})});
|
||||
//# sourceMappingURL=../../../maps/mvc/tools/tools-form-base.js.map
|
||||
@@ -1,2 +1,2 @@
|
||||
define(["utils/utils"],function(a){return Backbone.Model.extend({queue:[],process:{},counter:0,initialize:function(){this.on("refresh",function(){if(this.queue.length>0&&this.ready()){var a=this.queue[0];this.queue.splice(0,1),a&&a()}})},execute:function(a){this.queue.push(a),this.trigger("refresh")},register:function(){var b=a.uid();return this.process[b]=!0,this.counter++,console.debug("Deferred:register() - Register "+b),b},done:function(a){this.process[a]&&(delete this.process[a],this.counter--,console.debug("Deferred:done() - Unregister "+a),this.trigger("refresh"))},reset:function(){this.queue=[]},ready:function(){return 0==this.counter}})});
|
||||
define(["utils/utils"],function(a){return Backbone.Model.extend({initialize:function(){this.queue=[],this.process={},this.counter=0,this.queue_id=a.uid(),this.on("refresh",function(){if(this.queue.length>0&&this.ready()){var a=this.queue[0];this.queue.splice(0,1),a&&a()}})},execute:function(a){this.queue.push(a),this.trigger("refresh")},register:function(){var b=this.queue_id+":"+a.uid();return this.process[b]=!0,this.counter++,console.debug("Deferred:register() - Register "+b),b},done:function(a){this.process[a]&&(delete this.process[a],this.counter--,console.debug("Deferred:done() - Unregister "+a),this.trigger("refresh"))},reset:function(){this.queue=[]},ready:function(){return 0==this.counter}})});
|
||||
//# sourceMappingURL=../../maps/utils/deferred.js.map
|
||||
Reference in New Issue
Block a user