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) {
|
arangoError: function (message) {
|
||||||
var returnVal = false;
|
var returnVal = false;
|
||||||
$.gritter.add({
|
$.gritter.add({
|
||||||
title: "Error:",
|
title: "Notification:",
|
||||||
text: message,
|
text: message,
|
||||||
sticky: true,
|
sticky: true,
|
||||||
before_open: function(){
|
before_open: function(){
|
||||||
|
|
|
@ -127,11 +127,11 @@ var documentsView = Backbone.View.extend({
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.errors === 0) {
|
if (data.errors === 0) {
|
||||||
arangoHelper.arangoNotification("Upload successful. " +
|
arangoHelper.arangoError("Upload successful. " +
|
||||||
data.created + "document(s) imported.");
|
data.created + " document(s) imported.");
|
||||||
}
|
}
|
||||||
else if (data.errors !== 0) {
|
else if (data.errors !== 0) {
|
||||||
arangoHelper.arangoNotification("Upload failed." +
|
arangoHelper.arangoError("Upload failed." +
|
||||||
data.errors + "error(s).");
|
data.errors + "error(s).");
|
||||||
}
|
}
|
||||||
self.hideSpinner();
|
self.hideSpinner();
|
||||||
|
|
Loading…
Reference in New Issue