From 51b0c06365e2041c5678a839ede80bfa3151c3df Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Sat, 7 Sep 2013 22:07:21 +0300 Subject: [PATCH] Use notification instead of alert --- js/documents.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/documents.js b/js/documents.js index 10178af7..5137bff3 100644 --- a/js/documents.js +++ b/js/documents.js @@ -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; }