Use notification instead of alert
This commit is contained in:
parent
00d4b33374
commit
51b0c06365
@ -26,7 +26,8 @@ var documentsMain = {
|
||||
|
||||
runtime.assert(response.status, "Server error");
|
||||
if (response.status==='error'){
|
||||
alert('Server error');
|
||||
OC.Notification.show(t('documents', 'Oops! This document has been either unshared or deleted recently.'));
|
||||
setTimeout(OC.Notification.hide, 3000);
|
||||
documentsMain.hideOverlay();
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user