woops
This commit is contained in:
@@ -47,7 +47,7 @@
|
|||||||
.done(function (data) {
|
.done(function (data) {
|
||||||
console.log(data);
|
console.log(data);
|
||||||
|
|
||||||
if (data.success) {
|
if (data.status == "success") {
|
||||||
toastr.info('Exam state changed.')
|
toastr.info('Exam state changed.')
|
||||||
}
|
}
|
||||||
// show some message according to the response.
|
// show some message according to the response.
|
||||||
|
|||||||
@@ -44,10 +44,10 @@
|
|||||||
console.log(data);
|
console.log(data);
|
||||||
// show some message according to the response.
|
// show some message according to the response.
|
||||||
// For eg. A message box showing that the status has been changed
|
// For eg. A message box showing that the status has been changed
|
||||||
if (data.success) {
|
if (data.status == "success") {
|
||||||
toastr.info('Annotations saved')
|
toastr.info('Annotations saved')
|
||||||
} else {
|
} else {
|
||||||
toastr.warn('Error saving annotations')
|
toastr.warning('Error saving annotations')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.always(function () {
|
.always(function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user