diff options
author | Andras Timar <andras.timar@collabora.com> | 2018-02-22 01:57:54 +0300 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-02-22 01:57:54 +0300 |
commit | d02ed7a2f067fa64c773d95be97a3f088248a934 (patch) | |
tree | 41f7f8dd75db2459ae8b23a9bba2076b7eecf515 | |
parent | 35b65609433fa5a19862cac74d5c53b8bf1c0e64 (diff) |
Use Cancel and Save buttons instead of No and Yes on Save As dialog
-rw-r--r-- | js/documents.js | 7 |
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) { |