Skip to content
Snippets Groups Projects
Commit d08b19c0 authored by Marius Dumitru Florea's avatar Marius Dumitru Florea
Browse files

XWIKI-20445: Incomplete sentence for the key "realtime.requestDialog.autoAccept"

parent 0f7a6fa2
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ realtime.requestASession=The document is locked by another user. Do you want to
realtime.requestDialog.prompt=Someone wants to edit this document with you. Would you like to create a collaborative session?
realtime.requestDialog.create=Save and create a {0} collaborative session
realtime.requestDialog.reject=Stay offline and keep the document locked
realtime.requestDialog.autoAccept=Without action on your part, a collaborative session will be created in
realtime.requestDialog.autoCreate=Without action on your part, a collaborative session will be created in {0}s.
realtime.requestDialog.saveError=We were unable to save. Your request to join the collaborative session has been cancelled.
realtime.rejectDialog.prompt=Your request has been rejected. You can wait for the document to be unlocked. If you force the lock, you risk losing content.
realtime.rejectDialog.invalid=The editing mode currently used by the other user doesn't allow collaborative editing. Your request has been automatically rejected. Please wait for the document to be unlocked.
......@@ -82,6 +82,7 @@ realtime.editor.getContentFailed=Failed to get the edited content. You should tr
#######################################
realtime.conflictsWarningInfo=You can prevent these problems by <strong>copying or saving</strong> your changes and then
realtime.requestDialog.autoAccept=Without action on your part, a collaborative session will be created in
## Used to indicate where deprecated keys end
#@deprecatedend
\ No newline at end of file
......@@ -219,16 +219,16 @@ define('xwiki-realtime-loader', [
const content = createModalContent(Messages['requestDialog.prompt'],
Messages.get('requestDialog.create', info.name));
// Initialize auto-accept
const autoAccept = $('<p></p>').appendTo(content);
// Initialize auto-create
const autoCreate = $('<p></p>').appendTo(content);
let i = 30;
const interval = setInterval(function() {
i--;
autoAccept.html(Messages['requestDialog.autoAccept'] + i + 's');
autoCreate.text(Messages.get('requestDialog.autoCreate', i));
if (i <= 0) {
buttonCreate.click();
clearInterval(interval);
autoAccept.remove();
autoCreate.remove();
}
}, 1000);
......
......@@ -43,7 +43,7 @@ define('xwiki-realtime-messages', {
'requestDialog.prompt',
'requestDialog.create',
'requestDialog.reject',
'requestDialog.autoAccept',
'requestDialog.autoCreate',
'requestDialog.saveError',
'rejectDialog.prompt',
'rejectDialog.invalid',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment