Revize 6d850d19
Přidáno uživatelem Jan Pašek před asi 4 roky(ů)
static/js/create_certificate.js | ||
---|---|---|
71 | 71 |
.then(function (response) { |
72 | 72 |
// on success return to index page |
73 | 73 |
if(response.data["success"]) { |
74 |
alert("Certificate was successfully created."); |
|
75 |
window.location.href = "/static/index.html"; |
|
74 |
window.location.href = "/static/index.html?success=Certificate+successfully+created"; |
|
76 | 75 |
} |
77 | 76 |
// on error display server response message |
78 | 77 |
else { |
79 |
alert(response.data["data"]);
|
|
78 |
createCertificateApp.showError(response.data["data"]);
|
|
80 | 79 |
} |
81 | 80 |
}) |
82 | 81 |
.catch(function (error) { |
Také k dispozici: Unified diff
Re #8583 Certificate creation - creation success alert using Bootstrap