1
0
Fork 0

parmanent notification for imports

This commit is contained in:
Heiko Kernbach 2013-08-05 17:00:17 +02:00
parent 7336eba957
commit e1a63a8c34
2 changed files with 4 additions and 4 deletions

View File

@ -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(){

View File

@ -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();