diff --git a/lib/get-branch.php b/lib/get-branch.php index 8a1877f..57733d3 100644 --- a/lib/get-branch.php +++ b/lib/get-branch.php @@ -90,6 +90,20 @@ if (isset($_GET['location'])) { newUL.innerHTML = showContent; locNest.parentNode.insertBefore(newUL,locNest.nextSibling); },4); + } else { + + if (top.ICEcoder.ask("Your local folder is empty, would you like to clone ?")) { + setTimeout(function() { + top.ICEcoder.showHide('show',top.get('loadingMask')); + top.ICEcoder.filesFrame.contentWindow.frames['fileControl'].location.href = "lib/github.php?action=clone&csrf="+top.ICEcoder.csrf; + },4); + } + }