|
|
@ -134,7 +134,7 @@ define([
|
|
|
|
var $modal = $pad.contents().find('#modal');
|
|
|
|
var $modal = $pad.contents().find('#modal');
|
|
|
|
var $content = $pad.contents().find('#content');
|
|
|
|
var $content = $pad.contents().find('#content');
|
|
|
|
|
|
|
|
|
|
|
|
Slide.setModal($modal, $content, $pad, ifrw);
|
|
|
|
Slide.setModal($modal, $content, $pad, ifrw, Messages.slideInitialState);
|
|
|
|
|
|
|
|
|
|
|
|
var enterPresentationMode = function (shouldLog) {
|
|
|
|
var enterPresentationMode = function (shouldLog) {
|
|
|
|
Slide.show(true, $textarea.val());
|
|
|
|
Slide.show(true, $textarea.val());
|
|
|
@ -240,7 +240,7 @@ define([
|
|
|
|
var shjson = stringifyInner(textValue);
|
|
|
|
var shjson = stringifyInner(textValue);
|
|
|
|
|
|
|
|
|
|
|
|
module.patchText(shjson);
|
|
|
|
module.patchText(shjson);
|
|
|
|
Slide.update(textValue || Messages.slideInitialState);
|
|
|
|
Slide.update(textValue);
|
|
|
|
|
|
|
|
|
|
|
|
if (module.realtime.getUserDoc() !== shjson) {
|
|
|
|
if (module.realtime.getUserDoc() !== shjson) {
|
|
|
|
console.error("realtime.getUserDoc() !== shjson");
|
|
|
|
console.error("realtime.getUserDoc() !== shjson");
|
|
|
@ -648,7 +648,7 @@ define([
|
|
|
|
updateMetadata(userDoc);
|
|
|
|
updateMetadata(userDoc);
|
|
|
|
|
|
|
|
|
|
|
|
editor.setValue(newDoc || '');
|
|
|
|
editor.setValue(newDoc || '');
|
|
|
|
Slide.update(newDoc || Messages.slideInitialState);
|
|
|
|
Slide.update(newDoc);
|
|
|
|
|
|
|
|
|
|
|
|
if (Visible.isSupported()) {
|
|
|
|
if (Visible.isSupported()) {
|
|
|
|
Visible.onChange(function (yes) {
|
|
|
|
Visible.onChange(function (yes) {
|
|
|
|