From a5e97e6e590c6cc387530e914af4bea8af66fe44 Mon Sep 17 00:00:00 2001 From: carlfeberhard Date: Thu, 1 Oct 2015 12:25:07 -0400 Subject: [PATCH] UI, histories: fix scroll position capture/restore for the current history --- .../mvc/history/history-panel-edit-current.js | 31 ++++++++++++++----- .../history/history-panel-edit-current.js.map | 2 +- .../mvc/history/history-panel-edit-current.js | 2 +- 3 files changed, 25 insertions(+), 10 deletions(-) diff --git a/client/galaxy/scripts/mvc/history/history-panel-edit-current.js b/client/galaxy/scripts/mvc/history/history-panel-edit-current.js index e7dbe3f7203..68421f2a6a8 100644 --- a/client/galaxy/scripts/mvc/history/history-panel-edit-current.js +++ b/client/galaxy/scripts/mvc/history/history-panel-edit-current.js @@ -87,14 +87,6 @@ var CurrentHistoryPanel = _super.extend( _super.prototype._setUpListeners.call( this ); var panel = this; - // cache the scroll position (only if visible) - this.$scrollContainer().on( 'scroll', function( ev ){ - if( panel.$el.is( ':visible' ) ){ - panel.preferences.set( 'scrollPosition', $( this ).scrollTop() ); - } - }); - - //TODO: doesn't work // reset scroll position when there's a new history this.on( 'new-model', function(){ panel.preferences.set( 'scrollPosition', 0 ); @@ -191,6 +183,29 @@ var CurrentHistoryPanel = _super.extend( }, // ------------------------------------------------------------------------ panel rendering + /** override to add a handler to capture the scroll position when the parent scrolls */ + _setUpBehaviors : function(){ + // we need to call this in _setUpBehaviors which is called after render since the $el + // may not be attached to $el.parent and $scrollContainer() may not work + var panel = this; + _super.prototype._setUpBehaviors.call( panel ); + + // cache the handler to remove and re-add so we don't pile up the handlers + if( !this._debouncedScrollCaptureHandler ){ + this._debouncedScrollCaptureHandler = _.debounce( function scrollCapture(){ + // cache the scroll position (only if visible) + if( panel.$el.is( ':visible' ) ){ + panel.preferences.set( 'scrollPosition', $( this ).scrollTop() ); + } + }, 40 ); + } + + panel.$scrollContainer() + .off( 'scroll', this._debouncedScrollCaptureHandler ) + .on( 'scroll', this._debouncedScrollCaptureHandler ); + return panel; + }, + /** In this override, handle null models and move the search input to the top */ _buildNewRender : function(){ if( !this.model ){ return $(); } diff --git a/static/maps/mvc/history/history-panel-edit-current.js.map b/static/maps/mvc/history/history-panel-edit-current.js.map index ab17a74b06b..7e0ff3d15f2 100644 --- a/static/maps/mvc/history/history-panel-edit-current.js.map +++ b/static/maps/mvc/history/history-panel-edit-current.js.map @@ -1 +1 @@ -{"version":3,"file":"history-panel-edit-current.js","sources":["../../../src/mvc/history/history-panel-edit-current.js"],"names":["define","HISTORY_MODEL","HPANEL_EDIT","DC_PANEL","BASE_MVC","_l","HistoryPanelPrefs","SessionStorageModel","extend","defaults","tagsEditorShown","annotationEditorShown","scrollPosition","toString","JSON","stringify","this","toJSON","storageKey","_super","HistoryPanelEdit","CurrentHistoryPanel","className","prototype","emptyMsg","noneFoundMsg","HDCAViewClass","foldoutStyle","initialize","attributes","preferences","_","id","pick","keys","call","panelStack","currentContentId","_setUpListeners","panel","$scrollContainer","on","$el","is","set","$","scrollTop","loadCurrentHistory","debug","loadHistoryWithDetails","then","trigger","switchToHistory","historyId","historyFn","jQuery","getJSON","galaxy_config","root","createNewHistory","Galaxy","currUser","isAnonymous","displayMessage","when","loadHistory","undefined","setModel","model","render","log","checkForUpdates","_setUpCollectionListeners","collection","get","storage","removeItemView","_setUpModelListeners","quotaMeter","listenTo","update","_buildNewRender","$newRender","find","prependTo","_renderQuotaMessage","$whereTo","templates","quotaMsg","_renderEmptyMessage","$emptyMsg","$emptyMessage","$toolMenu","isEmpty","views","searchFor","upload","size","empty","html","join","click","ev","show","parent","_renderTags","$where","tagsEditor","toggle","hidden","_renderAnnotation","annotationEditor","_swapNewRender","delay","pos","scrollTo","_attachItems","_setCurrentContentById","addItemView","options","view","length","_collapseDrilldownPanel","_setUpItemViewListeners","v","drilldown","_expandDrilldownPanel","setCurrentContent","removeClass","addClass","viewFromModelId","push","add","$list","hide","parentName","append","pop","listenToGalaxy","galaxy","data","pathToMatch","fullpath","useToURLRegexMap","display","edit","report_error","rerun","show_params","hdaId","hdaUse","regex","use","match","connectToQuotaMeter","showQuotaMessage","hideQuotaMessage","isOverQuota","clearMessages","$target","isUndefined","$messages","children","currentTarget","not","fadeOut","fxSpeed","remove","$msg","slideDown","slideUp","quotaMsgTemplate","wrapTemplate","clone"],"mappings":"AAAAA,QACI,4BACA,iCACA,kCACA,eACA,sBACD,SAAUC,EAAeC,EAAaC,EAAUC,EAAUC,GAI7D,GAAIC,GAAoBF,EAASG,oBAAoBC,QAEjDC,UAEIC,iBAAkB,EAElBC,uBAAwB,EAMxBC,eAAiB,GAErBC,SAAW,WACP,MAAO,qBAAuBC,KAAKC,UAAWC,KAAKC,UAAa,MAKxEX,GAAkBY,WAAa,WAC3B,MAAO,gBAOX,IAAIC,GAASjB,EAAYkB,iBASrBC,EAAsBF,EAAOX,QAM7Bc,UAAsBH,EAAOI,UAAUD,UAAY,yBAEnDE,SAAsBnB,EAAI,0EAC1BoB,aAAsBpB,EAAI,8BAG1BqB,cAAsBP,EAAOI,UAAUG,cAAclB,QACjDmB,aAAe,cAKnBC,WAAa,SAAUC,GACnBA,EAAaA,MAIbb,KAAKc,YAAc,GAAIxB,GAAmByB,EAAEvB,QACxCwB,GAAK1B,EAAkBY,cACxBa,EAAEE,KAAMJ,EAAYE,EAAEG,KAAM5B,EAAkBiB,UAAUd,aAE3DU,EAAOI,UAAUK,WAAWO,KAAMnB,KAAMa,GAGxCb,KAAKoB,cAGLpB,KAAKqB,iBAAmBR,EAAWQ,kBAAoB,MAK3DC,gBAAkB,WACdnB,EAAOI,UAAUe,gBAAgBH,KAAMnB,KAEvC,IAAIuB,GAAQvB,IAEZA,MAAKwB,mBAAmBC,GAAI,SAAU,WAC9BF,EAAMG,IAAIC,GAAI,aACdJ,EAAMT,YAAYc,IAAK,iBAAkBC,EAAG7B,MAAO8B,eAM3D9B,KAAKyB,GAAI,YAAa,WAClBF,EAAMT,YAAYc,IAAK,iBAAkB,MAMjDG,mBAAqB,SAAUlB,GAC3Bb,KAAKgC,MAAOhC,KAAO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e6H,EAAKC,UAAWzJ,KAAKsJ,UAMrDV,iBAAmB,WACf,GAAIY,GAAOxJ,KAAK6B,EAAG,iBACd2H,GAAK7H,GAAI,YAAe6H,EAAKE,QAAS1J,KAAKsJ,UAKpDzJ,SAAc,WACV,MAAO,wBAA4BG,KAAW,MAAIA,KAAKoD,MAAMM,IAAK,QAAU,IAAU,MAsB1F,OAhBJrD,GAAoBE,UAAUgE,UAAa,WAEvC,GAAIoF,GAAmBvK,EAASwK,cAC5B,2CACIvK,EAAI,gCAAkC,KACtCA,EAAI,oFAAsF,IAC9F,UACD,UACH,OAAO0B,GAAEvB,OAAQuB,EAAE8I,MAAO1J,EAAOI,UAAUgE,YACvCC,SAAWmF,QAQXtJ,oBAA6BA"} \ No newline at end of file +{"version":3,"file":"history-panel-edit-current.js","sources":["../../../src/mvc/history/history-panel-edit-current.js"],"names":["define","HISTORY_MODEL","HPANEL_EDIT","DC_PANEL","BASE_MVC","_l","HistoryPanelPrefs","SessionStorageModel","extend","defaults","tagsEditorShown","annotationEditorShown","scrollPosition","toString","JSON","stringify","this","toJSON","storageKey","_super","HistoryPanelEdit","CurrentHistoryPanel","className","prototype","emptyMsg","noneFoundMsg","HDCAViewClass","foldoutStyle","initialize","attributes","preferences","_","id","pick","keys","call","panelStack","currentContentId","_setUpListeners","panel","on","set","loadCurrentHistory","debug","loadHistoryWithDetails","then","trigger","switchToHistory","historyId","historyFn","jQuery","getJSON","galaxy_config","root","createNewHistory","Galaxy","currUser","isAnonymous","displayMessage","$","when","loadHistory","undefined","setModel","model","render","log","checkForUpdates","_setUpCollectionListeners","collection","get","storage","removeItemView","_setUpModelListeners","quotaMeter","listenTo","update","_setUpBehaviors","_debouncedScrollCaptureHandler","debounce","$el","is","scrollTop","$scrollContainer","off","_buildNewRender","$newRender","find","prependTo","_renderQuotaMessage","$whereTo","templates","quotaMsg","_renderEmptyMessage","$emptyMsg","$emptyMessage","$toolMenu","isEmpty","views","searchFor","upload","size","empty","html","join","click","ev","show","parent","_renderTags","$where","tagsEditor","toggle","hidden","_renderAnnotation","annotationEditor","_swapNewRender","delay","pos","scrollTo","_attachItems","_setCurrentContentById","addItemView","options","view","length","_collapseDrilldownPanel","_setUpItemViewListeners","v","drilldown","_expandDrilldownPanel","setCurrentContent","removeClass","addClass","viewFromModelId","push","add","$list","hide","parentName","append","pop","listenToGalaxy","galaxy","data","pathToMatch","fullpath","useToURLRegexMap","display","edit","report_error","rerun","show_params","hdaId","hdaUse","regex","use","match","connectToQuotaMeter","showQuotaMessage","hideQuotaMessage","isOverQuota","clearMessages","$target","isUndefined","$messages","children","currentTarget","not","fadeOut","fxSpeed","remove","$msg","slideDown","slideUp","quotaMsgTemplate","wrapTemplate","clone"],"mappings":"AAAAA,QACI,4BACA,iCACA,kCACA,eACA,sBACD,SAAUC,EAAeC,EAAaC,EAAUC,EAAUC,GAI7D,GAAIC,GAAoBF,EAASG,oBAAoBC,QAEjDC,UAEIC,iBAAkB,EAElBC,uBAAwB,EAMxBC,eAAiB,GAErBC,SAAW,WACP,MAAO,qBAAuBC,KAAKC,UAAWC,KAAKC,UAAa,MAKxEX,GAAkBY,WAAa,WAC3B,MAAO,gBAOX,IAAIC,GAASjB,EAAYkB,iBASrBC,EAAsBF,EAAOX,QAM7Bc,UAAsBH,EAAOI,UAAUD,UAAY,yBAEnDE,SAAsBnB,EAAI,0EAC1BoB,aAAsBpB,EAAI,8BAG1BqB,cAAsBP,EAAOI,UAAUG,cAAclB,QACjDmB,aAAe,cAKnBC,WAAa,SAAUC,GACnBA,EAAaA,MAIbb,KAAKc,YAAc,GAAIxB,GAAmByB,EAAEvB,QACxCwB,GAAK1B,EAAkBY,cACxBa,EAAEE,KAAMJ,EAAYE,EAAEG,KAAM5B,EAAkBiB,UAAUd,aAE3DU,EAAOI,UAAUK,WAAWO,KAAMnB,KAAMa,GAGxCb,KAAKoB,cAGLpB,KAAKqB,iBAAmBR,EAAWQ,kBAAoB,MAK3DC,gBAAkB,WACdnB,EAAOI,UAAUe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D,EAAY,aAAe1D,KAAK+I,kBAC/C/I,KAAK2D,SAAUD,EAAY,cAAe1D,KAAKgJ,kBAG/ChJ,KAAKwB,GAAI,4BAA6B,WAC9BkC,GAAcA,EAAWuF,eACzBjJ,KAAK+I,qBAGN/I,MAZIA,MAiBfkJ,cAAgB,SAAUxD,GACtB,GAAIyD,GAAWpI,EAAEqI,YAAa1D,GAEzB1F,KAAKqJ,YAAYC,SAAU,sBAD5B3G,EAAG+C,EAAG6D,cAMV,OAJAJ,GAAUA,EAAQK,IAAK,kBACvBL,EAAQM,QAASzJ,KAAK0J,QAAS,WAC3B/G,EAAG3C,MAAO2J,WAEP3J,MAKX+I,iBAAmB,WACf,GAAIa,GAAO5J,KAAK2C,EAAG,iBACfiH,GAAK3F,GAAI,YAAe2F,EAAKC,UAAW7J,KAAK0J,UAMrDV,iBAAmB,WACf,GAAIY,GAAO5J,KAAK2C,EAAG,iBACdiH,GAAK3F,GAAI,YAAe2F,EAAKE,QAAS9J,KAAK0J,UAKpD7J,SAAc,WACV,MAAO,wBAA4BG,KAAW,MAAIA,KAAKgD,MAAMM,IAAK,QAAU,IAAU,MAsB1F,OAhBJjD,GAAoBE,UAAUoE,UAAa,WAEvC,GAAIoF,GAAmB3K,EAAS4K,cAC5B,2CACI3K,EAAI,gCAAkC,KACtCA,EAAI,oFAAsF,IAC9F,UACD,UACH,OAAO0B,GAAEvB,OAAQuB,EAAEkJ,MAAO9J,EAAOI,UAAUoE,YACvCC,SAAWmF,QAQX1J,oBAA6BA"} \ No newline at end of file diff --git a/static/scripts/mvc/history/history-panel-edit-current.js b/static/scripts/mvc/history/history-panel-edit-current.js index 5bae59108ea..38d500fa0ba 100644 --- a/static/scripts/mvc/history/history-panel-edit-current.js +++ b/static/scripts/mvc/history/history-panel-edit-current.js @@ -1,2 +1,2 @@ -define(["mvc/history/history-model","mvc/history/history-panel-edit","mvc/collection/collection-panel","mvc/base-mvc","utils/localization"],function(a,b,c,d,e){var f=d.SessionStorageModel.extend({defaults:{tagsEditorShown:!1,annotationEditorShown:!1,scrollPosition:0},toString:function(){return"HistoryPanelPrefs("+JSON.stringify(this.toJSON())+")"}});f.storageKey=function(){return"history-panel"};var g=b.HistoryPanelEdit,h=g.extend({className:g.prototype.className+" current-history-panel",emptyMsg:e("This history is empty. Click 'Get Data' on the left tool menu to start"),noneFoundMsg:e("No matching datasets found"),HDCAViewClass:g.prototype.HDCAViewClass.extend({foldoutStyle:"drilldown"}),initialize:function(a){a=a||{},this.preferences=new f(_.extend({id:f.storageKey()},_.pick(a,_.keys(f.prototype.defaults)))),g.prototype.initialize.call(this,a),this.panelStack=[],this.currentContentId=a.currentContentId||null},_setUpListeners:function(){g.prototype._setUpListeners.call(this);var a=this;this.$scrollContainer().on("scroll",function(){a.$el.is(":visible")&&a.preferences.set("scrollPosition",$(this).scrollTop())}),this.on("new-model",function(){a.preferences.set("scrollPosition",0)})},loadCurrentHistory:function(a){this.debug(this+".loadCurrentHistory");var b=this;return this.loadHistoryWithDetails("current",a).then(function(){b.trigger("current-history",b)})},switchToHistory:function(a,b){var c=this,d=function(){return jQuery.getJSON(galaxy_config.root+"history/set_as_current?id="+a)};return this.loadHistoryWithDetails(a,b,d).then(function(){c.trigger("switched-history",c)})},createNewHistory:function(a){if(!Galaxy||!Galaxy.currUser||Galaxy.currUser.isAnonymous())return this.displayMessage("error",e("You must be logged in to create histories")),$.when();var b=this,c=function(){return jQuery.getJSON(galaxy_config.root+"history/create_new_current")};return this.loadHistory(void 0,a,c).then(function(){b.trigger("new-history",b)})},setModel:function(a,b,c){return g.prototype.setModel.call(this,a,b,c),this.model&&(this.log("checking for updates"),this.model.checkForUpdates()),this},_setUpCollectionListeners:function(){g.prototype._setUpCollectionListeners.call(this),this.collection.on("state:ready",function(a){a.get("visible")||this.storage.get("show_hidden")||this.removeItemView(a)},this)},_setUpModelListeners:function(){g.prototype._setUpModelListeners.call(this),Galaxy&&Galaxy.quotaMeter&&this.listenTo(this.model,"change:nice_size",function(){Galaxy.quotaMeter.update()})},_buildNewRender:function(){if(!this.model)return $();var a=g.prototype._buildNewRender.call(this);return a.find(".search").prependTo(a.find(".controls")),this._renderQuotaMessage(a),a},_renderQuotaMessage:function(a){return a=a||this.$el,$(this.templates.quotaMsg({},this)).prependTo(a.find(".messages"))},_renderEmptyMessage:function(a){var b=this,c=b.$emptyMessage(a),d=$(".toolMenuContainer");return _.isEmpty(b.views)&&!b.searchFor&&Galaxy&&Galaxy.upload&&d.size()?(c.empty(),c.html([e("This history is empty"),". ",e("You can "),'',e("load your own data"),"",e(" or "),'',e("get data from an external source"),""].join("")),c.find(".uploader-link").click(function(a){Galaxy.upload.show(a)}),c.find(".get-data-link").click(function(){d.parent().scrollTop(0),d.find('span:contains("Get Data")').click()}),c.show()):g.prototype._renderEmptyMessage.call(this,a)},_renderTags:function(a){var b=this;g.prototype._renderTags.call(this,a),this.preferences.get("tagsEditorShown")&&this.tagsEditor.toggle(!0),this.tagsEditor.on("hiddenUntilActivated:shown hiddenUntilActivated:hidden",function(a){b.preferences.set("tagsEditorShown",a.hidden)})},_renderAnnotation:function(a){var b=this;g.prototype._renderAnnotation.call(this,a),this.preferences.get("annotationEditorShown")&&this.annotationEditor.toggle(!0),this.annotationEditor.on("hiddenUntilActivated:shown hiddenUntilActivated:hidden",function(a){b.preferences.set("annotationEditorShown",a.hidden)})},_swapNewRender:function(a){g.prototype._swapNewRender.call(this,a);var b=this;return _.delay(function(){var a=b.preferences.get("scrollPosition");a&&b.scrollTo(a)},10),this},_attachItems:function(a){g.prototype._attachItems.call(this,a);var b=this;return b.currentContentId&&b._setCurrentContentById(b.currentContentId),this},addItemView:function(a,b,c){var d=g.prototype.addItemView.call(this,a,b,c);return d&&this.panelStack.length?this._collapseDrilldownPanel():d},_setUpItemViewListeners:function(a){var b=this;return g.prototype._setUpItemViewListeners.call(b,a),a.on("expanded:drilldown",function(a,b){this._expandDrilldownPanel(b)},this),a.on("collapsed:drilldown",function(a,b){this._collapseDrilldownPanel(b)},this),this},setCurrentContent:function(a){this.$(".history-content.current-content").removeClass("current-content"),a?(a.$el.addClass("current-content"),this.currentContentId=a.model.id):this.currentContentId=null},_setCurrentContentById:function(a){var b=this.viewFromModelId(a)||null;this.setCurrentContent(b)},_expandDrilldownPanel:function(a){this.panelStack.push(a),this.$("> .controls").add(this.$list()).hide(),a.parentName=this.model.get("name"),this.$el.append(a.render().$el)},_collapseDrilldownPanel:function(){this.panelStack.pop(),this.render()},listenToGalaxy:function(a){a.on("galaxy_main:load",function(a){var b=a.fullpath,c={display:/datasets\/([a-f0-9]+)\/display/,edit:/datasets\/([a-f0-9]+)\/edit/,report_error:/dataset\/errors\?id=([a-f0-9]+)/,rerun:/tool_runner\/rerun\?id=([a-f0-9]+)/,show_params:/datasets\/([a-f0-9]+)\/show_params/},d=null,e=null;_.find(c,function(a,c){var f=b.match(a);return f&&2==f.length?(d=f[1],e=c,!0):!1}),d="dataset-"+d,this._setCurrentContentById(d)},this)},connectToQuotaMeter:function(a){return a?(this.listenTo(a,"quota:over",this.showQuotaMessage),this.listenTo(a,"quota:under",this.hideQuotaMessage),this.on("rendered rendered:initial",function(){a&&a.isOverQuota()&&this.showQuotaMessage()}),this):this},clearMessages:function(a){var b=_.isUndefined(a)?this.$messages().children('[class$="message"]'):$(a.currentTarget);return b=b.not(".quota-message"),b.fadeOut(this.fxSpeed,function(){$(this).remove()}),this},showQuotaMessage:function(){var a=this.$(".quota-message");a.is(":hidden")&&a.slideDown(this.fxSpeed)},hideQuotaMessage:function(){var a=this.$(".quota-message");a.is(":hidden")||a.slideUp(this.fxSpeed)},toString:function(){return"CurrentHistoryPanel("+(this.model?this.model.get("name"):"")+")"}});return h.prototype.templates=function(){var a=d.wrapTemplate(['
',e("You are over your disk quota"),". ",e("Tool execution is on hold until your disk usage drops below your allocated quota"),".","
"],"history");return _.extend(_.clone(g.prototype.templates),{quotaMsg:a})}(),{CurrentHistoryPanel:h}}); +define(["mvc/history/history-model","mvc/history/history-panel-edit","mvc/collection/collection-panel","mvc/base-mvc","utils/localization"],function(a,b,c,d,e){var f=d.SessionStorageModel.extend({defaults:{tagsEditorShown:!1,annotationEditorShown:!1,scrollPosition:0},toString:function(){return"HistoryPanelPrefs("+JSON.stringify(this.toJSON())+")"}});f.storageKey=function(){return"history-panel"};var g=b.HistoryPanelEdit,h=g.extend({className:g.prototype.className+" current-history-panel",emptyMsg:e("This history is empty. Click 'Get Data' on the left tool menu to start"),noneFoundMsg:e("No matching datasets found"),HDCAViewClass:g.prototype.HDCAViewClass.extend({foldoutStyle:"drilldown"}),initialize:function(a){a=a||{},this.preferences=new f(_.extend({id:f.storageKey()},_.pick(a,_.keys(f.prototype.defaults)))),g.prototype.initialize.call(this,a),this.panelStack=[],this.currentContentId=a.currentContentId||null},_setUpListeners:function(){g.prototype._setUpListeners.call(this);var a=this;this.on("new-model",function(){a.preferences.set("scrollPosition",0)})},loadCurrentHistory:function(a){this.debug(this+".loadCurrentHistory");var b=this;return this.loadHistoryWithDetails("current",a).then(function(){b.trigger("current-history",b)})},switchToHistory:function(a,b){var c=this,d=function(){return jQuery.getJSON(galaxy_config.root+"history/set_as_current?id="+a)};return this.loadHistoryWithDetails(a,b,d).then(function(){c.trigger("switched-history",c)})},createNewHistory:function(a){if(!Galaxy||!Galaxy.currUser||Galaxy.currUser.isAnonymous())return this.displayMessage("error",e("You must be logged in to create histories")),$.when();var b=this,c=function(){return jQuery.getJSON(galaxy_config.root+"history/create_new_current")};return this.loadHistory(void 0,a,c).then(function(){b.trigger("new-history",b)})},setModel:function(a,b,c){return g.prototype.setModel.call(this,a,b,c),this.model&&(this.log("checking for updates"),this.model.checkForUpdates()),this},_setUpCollectionListeners:function(){g.prototype._setUpCollectionListeners.call(this),this.collection.on("state:ready",function(a){a.get("visible")||this.storage.get("show_hidden")||this.removeItemView(a)},this)},_setUpModelListeners:function(){g.prototype._setUpModelListeners.call(this),Galaxy&&Galaxy.quotaMeter&&this.listenTo(this.model,"change:nice_size",function(){Galaxy.quotaMeter.update()})},_setUpBehaviors:function(){var a=this;return g.prototype._setUpBehaviors.call(a),this._debouncedScrollCaptureHandler||(this._debouncedScrollCaptureHandler=_.debounce(function(){a.$el.is(":visible")&&a.preferences.set("scrollPosition",$(this).scrollTop())},40)),a.$scrollContainer().off("scroll",this._debouncedScrollCaptureHandler).on("scroll",this._debouncedScrollCaptureHandler),a},_buildNewRender:function(){if(!this.model)return $();var a=g.prototype._buildNewRender.call(this);return a.find(".search").prependTo(a.find(".controls")),this._renderQuotaMessage(a),a},_renderQuotaMessage:function(a){return a=a||this.$el,$(this.templates.quotaMsg({},this)).prependTo(a.find(".messages"))},_renderEmptyMessage:function(a){var b=this,c=b.$emptyMessage(a),d=$(".toolMenuContainer");return _.isEmpty(b.views)&&!b.searchFor&&Galaxy&&Galaxy.upload&&d.size()?(c.empty(),c.html([e("This history is empty"),". ",e("You can "),'',e("load your own data"),"",e(" or "),'',e("get data from an external source"),""].join("")),c.find(".uploader-link").click(function(a){Galaxy.upload.show(a)}),c.find(".get-data-link").click(function(){d.parent().scrollTop(0),d.find('span:contains("Get Data")').click()}),c.show()):g.prototype._renderEmptyMessage.call(this,a)},_renderTags:function(a){var b=this;g.prototype._renderTags.call(this,a),this.preferences.get("tagsEditorShown")&&this.tagsEditor.toggle(!0),this.tagsEditor.on("hiddenUntilActivated:shown hiddenUntilActivated:hidden",function(a){b.preferences.set("tagsEditorShown",a.hidden)})},_renderAnnotation:function(a){var b=this;g.prototype._renderAnnotation.call(this,a),this.preferences.get("annotationEditorShown")&&this.annotationEditor.toggle(!0),this.annotationEditor.on("hiddenUntilActivated:shown hiddenUntilActivated:hidden",function(a){b.preferences.set("annotationEditorShown",a.hidden)})},_swapNewRender:function(a){g.prototype._swapNewRender.call(this,a);var b=this;return _.delay(function(){var a=b.preferences.get("scrollPosition");a&&b.scrollTo(a)},10),this},_attachItems:function(a){g.prototype._attachItems.call(this,a);var b=this;return b.currentContentId&&b._setCurrentContentById(b.currentContentId),this},addItemView:function(a,b,c){var d=g.prototype.addItemView.call(this,a,b,c);return d&&this.panelStack.length?this._collapseDrilldownPanel():d},_setUpItemViewListeners:function(a){var b=this;return g.prototype._setUpItemViewListeners.call(b,a),a.on("expanded:drilldown",function(a,b){this._expandDrilldownPanel(b)},this),a.on("collapsed:drilldown",function(a,b){this._collapseDrilldownPanel(b)},this),this},setCurrentContent:function(a){this.$(".history-content.current-content").removeClass("current-content"),a?(a.$el.addClass("current-content"),this.currentContentId=a.model.id):this.currentContentId=null},_setCurrentContentById:function(a){var b=this.viewFromModelId(a)||null;this.setCurrentContent(b)},_expandDrilldownPanel:function(a){this.panelStack.push(a),this.$("> .controls").add(this.$list()).hide(),a.parentName=this.model.get("name"),this.$el.append(a.render().$el)},_collapseDrilldownPanel:function(){this.panelStack.pop(),this.render()},listenToGalaxy:function(a){a.on("galaxy_main:load",function(a){var b=a.fullpath,c={display:/datasets\/([a-f0-9]+)\/display/,edit:/datasets\/([a-f0-9]+)\/edit/,report_error:/dataset\/errors\?id=([a-f0-9]+)/,rerun:/tool_runner\/rerun\?id=([a-f0-9]+)/,show_params:/datasets\/([a-f0-9]+)\/show_params/},d=null,e=null;_.find(c,function(a,c){var f=b.match(a);return f&&2==f.length?(d=f[1],e=c,!0):!1}),d="dataset-"+d,this._setCurrentContentById(d)},this)},connectToQuotaMeter:function(a){return a?(this.listenTo(a,"quota:over",this.showQuotaMessage),this.listenTo(a,"quota:under",this.hideQuotaMessage),this.on("rendered rendered:initial",function(){a&&a.isOverQuota()&&this.showQuotaMessage()}),this):this},clearMessages:function(a){var b=_.isUndefined(a)?this.$messages().children('[class$="message"]'):$(a.currentTarget);return b=b.not(".quota-message"),b.fadeOut(this.fxSpeed,function(){$(this).remove()}),this},showQuotaMessage:function(){var a=this.$(".quota-message");a.is(":hidden")&&a.slideDown(this.fxSpeed)},hideQuotaMessage:function(){var a=this.$(".quota-message");a.is(":hidden")||a.slideUp(this.fxSpeed)},toString:function(){return"CurrentHistoryPanel("+(this.model?this.model.get("name"):"")+")"}});return h.prototype.templates=function(){var a=d.wrapTemplate(['
',e("You are over your disk quota"),". ",e("Tool execution is on hold until your disk usage drops below your allocated quota"),".","
"],"history");return _.extend(_.clone(g.prototype.templates),{quotaMsg:a})}(),{CurrentHistoryPanel:h}}); //# sourceMappingURL=../../../maps/mvc/history/history-panel-edit-current.js.map \ No newline at end of file