git clone panel available on files tab too

This commit is contained in:
randx 2012-09-03 22:30:14 +03:00
parent 8ca0b75d05
commit f557686eb2
7 changed files with 31 additions and 14 deletions

View file

@ -14,3 +14,12 @@ function Projects() {
disableButtonIfEmtpyField("#project_name", ".project-submit")
}
function initGitCloneSwitcher() {
var link_sel = ".project_clone_holder button";
$(link_sel).bind("click", function(e) {
$(link_sel).removeClass("active");
$(this).addClass("active");
$("#project_clone").val($(this).attr("data-clone"));
})
}