All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ui.static.gitRefresh.js Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
$(document).ready(function () {
    $("#refresh-git-now-btn").click(doRefreshGitNow);
});

function doRefreshGitNow() {
    showOpProgressOnId("git", "Refreshing git repository...")
    $.post("api/git/refresh-now")
        .done(function () {
            showOpSuccessOnId("git", "Successfully refreshed git, refreshing page...");
            setTimeout(function () {
                location.reload();
            }, 1000);
        })
        .fail(function (error) {
            let errMsg = extractErrMsg(error);
            showOpErrorOnId("git", "Failed to do git refresh", errMsg);
        });
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy