repman-io/repman

View on GitHub
templates/component/js/addPackage.js

Summary

Maintainability
A
0 mins
Test Coverage
(function() {
    $('.addPackageType').on('change', function(e) {
        const type = e.target.value;
        const baseUrl = $('.addPackageFormUrl').val();

        window.location.href = `${baseUrl}/${type}`;
    });
})();