%PDF- %PDF-
| Direktori : /data/old/home/stash/atlassian-stash/static/feature/repository/cloneUrlGen/ |
| Current File : //data/old/home/stash/atlassian-stash/static/feature/repository/cloneUrlGen/cloneUrlGen-min.js |
define("feature/repository/cloneUrlGen",["jquery","unorm","util/navbuilder","model/page-state","exports"],function(F,C,D,E,B){function A(H){return C.nfkd(H).replace(/[^\x00-\x7F]+/g,"").replace(/[^a-zA-Z\-_0-9\\.]+/g,"-").toLowerCase()}function G(J,M,I){var N=F(J),H=F(M),K=false;I=I||E.getProject;if(!H.val()){H.hide();K=true}var L=function(){function Q(){H.fadeOut("fast");K=true}function R(){H.fadeIn("fast");K=false}function P(V){H.text(V)}var U=I();if(U){var O=A(N.val()||""),T=D.project(U),S=O?T.repo(O).clone("git").buildAbsolute():"";if(!O&&!K){Q()}else{if(O&&K){P(S);R()}else{P(S)}}}else{if(!K){Q()}}setTimeout(L,100)};setTimeout(L,100)}B.bindUrlGeneration=G;B.slugify=A});