mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 03:49:24 +00:00
/pedagogy/uv/create use quick notif
This commit is contained in:
@ -58,7 +58,7 @@
|
||||
url: url,
|
||||
success: function(data, _, xhr) {
|
||||
if (xhr.status != 200) {
|
||||
alert("{% trans %}Unknown UV code{% endtrans %}")
|
||||
createQuickNotif("{% trans %}Unknown UV code{% endtrans %}")
|
||||
return
|
||||
}
|
||||
for (let key in data) {
|
||||
@ -73,10 +73,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
alert('{% trans %}Successful autocomplete{% endtrans %}')
|
||||
createQuickNotif('{% trans %}Successful autocomplete{% endtrans %}')
|
||||
},
|
||||
error: function(_, _, statusMessage) {
|
||||
alert('{% trans %}An error occured: {% endtrans %}' + statusMessage)
|
||||
createQuickNotif('{% trans %}An error occured: {% endtrans %}' + statusMessage)
|
||||
},
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user