diff --git a/citesphere/src/main/webapp/WEB-INF/views/auth/group/item.html b/citesphere/src/main/webapp/WEB-INF/views/auth/group/item.html index e55bf9880..1b53daeae 100644 --- a/citesphere/src/main/webapp/WEB-INF/views/auth/group/item.html +++ b/citesphere/src/main/webapp/WEB-INF/views/auth/group/item.html @@ -111,7 +111,11 @@ success: function(data) { document.getElementById('uploadFileInput').value = ''; $("#uploadFileModal").modal('hide'); - } + }, + error: function(data) { + $("#uploadFileModal").modal('hide'); + showNotification(" Error while attempting to upload files!", "danger"); + } }); }); @@ -272,16 +276,16 @@ }); } - function showNotification(message, status, time) { + function showNotification(message, status, time=0) { $.notify(''+ message, { type: status, - offset: {x: 50, y: 90}, - timer: time, - animate: { - enter: 'animated fadeInRight', - exit: 'animated fadeOutRight' - }, - }); + offset: {x: 50, y: 90}, + timer: time, + animate: { + enter: 'animated fadeInRight', + exit: 'animated fadeOutRight' + }, + }); }