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");
|
runtime.assert(response.status, "Server error");
|
||||||
if (response.status==='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();
|
documentsMain.hideOverlay();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user