%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /data/old/home/stash/stash/atlassian-stash/static/page/repository/empty/
Upload File :
Create Path :
Current File : //data/old/home/stash/stash/atlassian-stash/static/page/repository/empty/empty-repository-min.js

define("page/repository/emptyRepository",["aui","jquery","util/ajax","util/events","model/page-state","exports"],function(B,G,F,E,D,A){function C(H,I){G("#empty-repository-instructions").html(stash.page.emptyRepositoryInstructions({repository:D.getRepository().toJSON(),cloneUrl:I,currentUser:D.getCurrentUser().toJSON()}))}E.on("stash.feature.repository.clone.protocol.initial",C);E.on("stash.feature.repository.clone.protocol.changed",C);A.onReady=function(K){if(G("#empty-repository-instructions:empty").length){C(null,D.getRepository().getCloneUrl())}if(K){var L="/browse",J=window.location.href.lastIndexOf(L),H=J===-1?window.location.href:window.location.href.substr(0,J);var N=G('<div id="initialising" />'),M=G("<h2></h2>"),I=G("#content .content-body");M.text(B.I18n.getText("stash.web.repository.initialising"));I.css("opacity",0.2);M.appendTo(N);N.appendTo(I.parent());N.spin("large");F.poll({url:H,tick:function(P){var O=P&&P.state;if(O==="AVAILABLE"){return true}else{if(O==="INITIALISATION_FAILED"){return false}else{return undefined}}}}).always(function(){N.spinStop();N.remove();I.fadeTo("fast",1)}).fail(function(R,Q,O,P){I.empty().css("padding","16px");if(R.status===200){G(aui.message.error({content:B.escapeHtml(P.statusMessage)})).appendTo(I)}})}}});require("page/repository/emptyRepository");

Zerion Mini Shell 1.0