]> source.dussan.org Git - nextcloud-server.git/commitdiff
use OC_Dialogs instead of alert()
authorTom Needham <needham.thomas@gmail.com>
Mon, 2 Apr 2012 16:35:11 +0000 (16:35 +0000)
committerTom Needham <needham.thomas@gmail.com>
Mon, 2 Apr 2012 16:35:11 +0000 (16:35 +0000)
apps/files_texteditor/js/editor.js

index 02d39b984309732fb7508e8653ed22f42f271a0b..9a87601a4f7cfa010678931a899cb8c25a0afd4c 100644 (file)
@@ -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
                        }