%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/985914/root/data/old/home/stash/atlassian-stash/static/feature/commits/
Upload File :
Create Path :
Current File : //proc/985914/root/data/old/home/stash/atlassian-stash/static/feature/commits/commits-table-min.js

define("feature/commits/commits-table",["aui","jquery","util/events","widget/paged-table"],function(C,D,A,B){function E(G,F){this.getCommitsUrlBuilder=G;var H={target:"#commits-table",ajaxDataType:"html",tableMessageClass:"commits-table-message",allFetchedMessageHtml:'<p class="no-more-results">'+C.escapeHtml(AJS.I18n.getText("stash.web.commits.allcommitsfetched"))+"</p>",noneFoundMessageHtml:'<h3 class="no-results entity-empty">'+C.escapeHtml(AJS.I18n.getText("stash.web.commits.nocommitsfetched"))+"</h3>"};F=D.extend({},H,F);B.call(this,F);this.$spinner.addClass("commits-table-spinner")}D.extend(E.prototype,B.prototype);E.prototype.buildUrl=function(G,F){return this.getCommitsUrlBuilder().withParams({start:G,limit:F,contents:""}).build()};E.prototype.onDataLoaded=function(H,F,G){if(typeof G==="string"){G=this.createDataFromJQuery(H,F,D(G))}return B.prototype.onDataLoaded.call(this,H,F,G)};E.prototype.attachNewContent=function(G,F){B.prototype.attachNewContent.call(this,G,F);A.trigger("stash.widget.commitsTable.contentAdded",this,G)};E.prototype.handleNewRows=function(G,F){this.$table.show().children("tbody")[F!=="html"?F:"append"](G.values)};E.prototype.focusInitialRow=function(){this.$table.find("tbody tr.commit-row:first").addClass("focused-commit")};E.prototype.initShortcuts=function(){var G=this,J=this.$table.selector,F=false,H={focusedClass:"focused-commit",wrapAround:false,escToCancel:false},K=J+" .commit-row."+H.focusedClass,I=K+", "+J+".show-merges .commit-row, "+J+":not(.show-merges) .commit-row:not(.merge)";this._onDisableOpenItemHandler=function(){F=true};this._onEnableOpenItemHandler=function(){F=false};A.on("stash.keyboard.shortcuts.disableOpenItemHandler",this._onDisableOpenItemHandler);A.on("stash.keyboard.shortcuts.enableOpenItemHandler",this._onEnableOpenItemHandler);this.bindMoveToNextHandler=function(L){(this.moveToNextItem?this:C.whenIType(L)).moveToNextItem(I,H).execute(function(){if(D(I).last().hasClass(H.focusedClass)){window.scrollTo(0,document.documentElement.scrollHeight)}})};this.bindMoveToPreviousHandler=function(L){(this.moveToPrevItem?this:C.whenIType(L)).moveToPrevItem(I,H)};this.bindOpenItemHandler=function(L){(this.execute?this:C.whenIType(L)).execute(function(){if(!F){var M=C.$(K);if(M.length){window.location.href=M.find("td.changeset a").attr("href")}}})};this.bindToggleMergesHandler=function(L){(this.execute?this:C.whenIType(L)).execute(function(){G.$table.toggleClass("show-merges")})};B.prototype.initShortcuts.call(this)};E.prototype.resetShortcuts=function(){B.prototype.resetShortcuts.call(this);A.off("stash.keyboard.shortcuts.disableOpenItemHandler",this._onDisableOpenItemHandler);A.off("stash.keyboard.shortcuts.enableOpenItemHandler",this._onEnableOpenItemHandler)};return E});

Zerion Mini Shell 1.0