Use notification instead of alert

pull/1/head
Victor Dubiniuk 11 years ago
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…
Cancel
Save