summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-07-15 10:12:47 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-07-15 12:28:29 +0200
commit7af608881bb1ae8f3b08cae63a0e4b03891f1ed5 (patch)
treecfbdc292ad03db00e6fef57d94e0c9ab5306e10a
parent4e684b9e9dd7c31e04d65e506dfe6e0bb0eaccdb (diff)
downloadnextcloud-server-7af608881bb1ae8f3b08cae63a0e4b03891f1ed5.tar.gz
nextcloud-server-7af608881bb1ae8f3b08cae63a0e4b03891f1ed5.zip
Added notification.
-rw-r--r--apps/contacts/js/contacts.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/contacts/js/contacts.js b/apps/contacts/js/contacts.js
index a9fe38ead1a..f859f8385ce 100644
--- a/apps/contacts/js/contacts.js
+++ b/apps/contacts/js/contacts.js
@@ -1787,7 +1787,8 @@ $(document).ready(function(){
},
fail: function(e, data) {
console.log('fail');
- // TODO: cancel upload & display error notification
+ Contacts.UI.notify(data.errorThrown + ': ' + data.textStatus);
+ // TODO: Remove file from upload queue.
},
progressall: function(e, data) {
var progress = (data.loaded/data.total)*50;