Account portal, download page, non-standard module docs

This ends v1 on the website. Docs archive still available through a
sidebar nav link in the docs.
This commit is contained in:
Matthew Holt 2020-07-16 15:51:46 -06:00
parent 49ed10d267
commit 4f6d355a97
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5
37 changed files with 1678 additions and 56 deletions

View file

@ -0,0 +1,27 @@
$(function() {
$('form input').first().focus();
$('form').submit(function(event) {
$('#submit').prop('disabled', true);
$.post($(this).prop("action"), $(this).serialize()).done(function() {
swal({
icon: "success",
title: "It's yours",
text: "Package claimed. Its documentation is now available on our website and you are responsible for maintaining it. Thank you!"
}).then(function() {
// TODO: ...
// window.location = "/account/login";
});
}).fail(function(jqxhr, status, error) {
swal({
icon: "error",
title: error,
content: errorContent(jqxhr)
});
$('#submit').prop('disabled', false);
});
return false;
});
});