From: Tom Needham Date: Mon, 2 Apr 2012 16:35:11 +0000 (+0000) Subject: use OC_Dialogs instead of alert() X-Git-Tag: v4.0.0beta~381^2~19^2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d0cb99e3474b7ef81b42af461930d141bb75baa5;p=nextcloud-server.git use OC_Dialogs instead of alert() --- diff --git a/apps/files_texteditor/js/editor.js b/apps/files_texteditor/js/editor.js index 02d39b98430..9a87601a4f7 100644 --- a/apps/files_texteditor/js/editor.js +++ b/apps/files_texteditor/js/editor.js @@ -210,7 +210,7 @@ function showFileEditor(dir,filename){ }); } else { // Failed to get the file. - alert(result.data.message); + OC.dialogs.alert(result.data.message, t('files_texteditor','An error occurred!')); } // End success }