Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_texteditor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-08-08 13:23:16 +0400
committerBjoern Schiessle <schiessle@owncloud.com>2014-08-08 13:29:09 +0400
commit854be5099df1c5d8679e35ea208ae88df4d86d5e (patch)
treecb6c960e0938c3b28cc3b33bd916cdba15a22677 /js
parentce4e827a2b0f40409a56bfb424646a538de31cd6 (diff)
improved error messages
Diffstat (limited to 'js')
-rw-r--r--js/editor.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/editor.js b/js/editor.js
index 5095c91..d0a78c4 100644
--- a/js/editor.js
+++ b/js/editor.js
@@ -153,7 +153,7 @@ function doFileSave() {
if (jsondata.status != 'success') {
// Save failed
$('#editor_save').text(t('files_texteditor', 'Save'));
- $('#notification').html(t('files_texteditor', 'Failed to save file'));
+ $('#notification').text(jsondata.data.message);
$('#notification').fadeIn();
$('#editor_save').live('click', doFileSave);
} else {
@@ -370,7 +370,7 @@ $(document).ready(function () {
FileActions.setDefault('application/x-tex', 'Edit');
}
-
+
//legacy search result customization
OC.search.customResults.Text = function (row, item) {
var text = item.link.substr(item.link.indexOf('download') + 8);