Use Cancel and Save buttons instead of No and Yes on Save As dialog

This commit is contained in:
Andras Timar 2018-02-21 23:57:54 +01:00
parent 35b6560943
commit d02ed7a2f0

View File

@ -401,7 +401,12 @@ var documentsMain = {
}, },
true, true,
t('richdocuments', 'New filename'), 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') { } else if (msgId === 'App_VersionRestore') {
if (!documentsMain.$deferredVersionRestoreAck) if (!documentsMain.$deferredVersionRestoreAck)
{ {