mirror of https://gitee.com/bigwinds/arangodb
parmanent notification for imports
This commit is contained in:
parent
7336eba957
commit
e1a63a8c34
|
@ -30,7 +30,7 @@ window.arangoHelper = {
|
|||
arangoError: function (message) {
|
||||
var returnVal = false;
|
||||
$.gritter.add({
|
||||
title: "Error:",
|
||||
title: "Notification:",
|
||||
text: message,
|
||||
sticky: true,
|
||||
before_open: function(){
|
||||
|
|
|
@ -127,11 +127,11 @@ var documentsView = Backbone.View.extend({
|
|||
}
|
||||
|
||||
if (data.errors === 0) {
|
||||
arangoHelper.arangoNotification("Upload successful. " +
|
||||
data.created + "document(s) imported.");
|
||||
arangoHelper.arangoError("Upload successful. " +
|
||||
data.created + " document(s) imported.");
|
||||
}
|
||||
else if (data.errors !== 0) {
|
||||
arangoHelper.arangoNotification("Upload failed." +
|
||||
arangoHelper.arangoError("Upload failed." +
|
||||
data.errors + "error(s).");
|
||||
}
|
||||
self.hideSpinner();
|
||||
|
|
Loading…
Reference in New Issue