diff --git a/www/code/inner.js b/www/code/inner.js index 7b654a3b1..3ffb2baef 100644 --- a/www/code/inner.js +++ b/www/code/inner.js @@ -452,6 +452,7 @@ define([ markers.ready(); common.getPadMetadata(null, function (md) { if (md && md.error) { return; } + if (!Array.isArray(md.owners)) { return void markers.setState(false); } if (!common.isOwned(md.owners)) { return; } // We're the owner: add the button and enable the colors if needed mkColorByAuthor(framework, markers); diff --git a/www/code/markers.js b/www/code/markers.js index fb44707e0..bf3f00f82 100644 --- a/www/code/markers.js +++ b/www/code/markers.js @@ -46,7 +46,7 @@ define([ inclusiveRight: uid === Env.myAuthorId, css: "background-color: " + rgba, attributes: { - title: Env.opacity ? Messages._getKey('cba_writtenBy', [name]) : undefined, + title: Env.opacity ? Messages._getKey('cba_writtenBy', [name]) : '', 'data-type': 'authormark', 'data-uid': uid } @@ -689,7 +689,7 @@ define([ Markers.create = function (config) { var Env = config; - Env.authormarks = Util.clone(DEFAULT); + Env.authormarks = {}; Env.enabled = false; Env.myAuthorId = 0;