Commit 7655a5ad by Tom Giannattasio

added toast subsection save feedback

parent 54937e46
......@@ -252,10 +252,10 @@ function saveSubsection(e) {
contentType: "application/json",
data:JSON.stringify({ 'id' : id, 'metadata' : metadata, 'data': null, 'children' : children}),
success: function() {
alert('Your changes have been saved.');
showToastMessage('Your changes have been saved.', null, 3);
},
error: function() {
alert('There has been an error while saving your changes.');
showToastMessage('There has been an error while saving your changes.', null, 3);
}
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment