Make sure the initial title is set in the userDoc when creating a new pad

pull/1/head
yflory 8 years ago
parent 8b5f4dbd47
commit a5924cb803

@ -14,6 +14,7 @@ define(function () {
var getHeadingText = cfg.getHeadingText || function () { return; }; var getHeadingText = cfg.getHeadingText || function () { return; };
var updateLocalTitle = function (newTitle) { var updateLocalTitle = function (newTitle) {
exp.title = newTitle; exp.title = newTitle;
onLocal();
if (typeof cfg.updateLocalTitle === "function") { if (typeof cfg.updateLocalTitle === "function") {
cfg.updateLocalTitle(newTitle); cfg.updateLocalTitle(newTitle);
} else { } else {

@ -205,6 +205,7 @@ define([
$(ifrw).on('keyup', function (e) { $(ifrw).on('keyup', function (e) {
if (!Slide.shown) { return; } if (!Slide.shown) { return; }
if (e.ctrlKey) { return; }
switch(e.which) { switch(e.which) {
case 33: // pageup case 33: // pageup
case 38: // up case 38: // up

Loading…
Cancel
Save