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

js.baselines.js Maven / Gradle / Ivy

The newest version!
function toggleBaseline(evt) {
    let source = event.target || event.srcElement;
    let checked = source.checked;
    let ok = confirm("Do you want to permanently change the baseline status to " + checked + "?");
    if (ok) {
        let ID = source.getAttribute('data-id');
        let url = getBaselineStatusURL(ID);
        $.ajax({
            'type': 'POST',
            'url': url,
            'contentType': 'application/json',
            'data': JSON.stringify(checked),
            'dataType': 'json',
        });
    } else {
        evt.preventDefault();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy