Update the preview and present content on Ready in slides

This commit is contained in:
yflory
2017-06-19 15:58:10 +02:00
parent 54adb680e7
commit d3b9ac2511
3 changed files with 3 additions and 4 deletions

View File

@@ -572,7 +572,6 @@ define([
// Update the user list (metadata) from the hyperjson
Metadata.update(userDoc);
editor.setValue(newDoc || initialState);
if (Cryptpad.initialName && Title.isDefaultTitle()) {
@@ -593,7 +592,6 @@ define([
slideNumber = ' (' + ++n + '/' + l + ')';
}
}
console.log("Exiting presentation mode");
document.title = Title.title + slideNumber;
});
@@ -602,6 +600,7 @@ define([
initializing = false;
onLocal(); // push local state to avoid parse errors later.
Slide.update(editor.getValue());
if (readOnly) { return; }
UserList.getLastName(toolbar.$userNameButton, isNew);