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

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2018-02-22 01:57:54 +0300
committerAndras Timar <andras.timar@collabora.com>2018-02-22 01:57:54 +0300
commitd02ed7a2f067fa64c773d95be97a3f088248a934 (patch)
tree41f7f8dd75db2459ae8b23a9bba2076b7eecf515
parent35b65609433fa5a19862cac74d5c53b8bf1c0e64 (diff)
Use Cancel and Save buttons instead of No and Yes on Save As dialog
-rw-r--r--js/documents.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/js/documents.js b/js/documents.js
index 88421787..6614044a 100644
--- a/js/documents.js
+++ b/js/documents.js
@@ -401,7 +401,12 @@ var documentsMain = {
},
true,
t('richdocuments', 'New filename'),
- false);
+ false).then(function() {
+ var $dialog = $('.oc-dialog:visible');
+ var $buttons = $dialog.find('button');
+ $buttons.eq(0).text(t('richdocuments', 'Cancel'));
+ $buttons.eq(1).text(t('richdocuments', 'Save'));
+ });
} else if (msgId === 'App_VersionRestore') {
if (!documentsMain.$deferredVersionRestoreAck)
{