Merge branch 'master' into soon

pull/1/head
ansuz 5 years ago
commit 0a97ae8c52

@ -452,6 +452,7 @@ define([
markers.ready(); markers.ready();
common.getPadMetadata(null, function (md) { common.getPadMetadata(null, function (md) {
if (md && md.error) { return; } if (md && md.error) { return; }
if (!Array.isArray(md.owners)) { return void markers.setState(false); }
if (!common.isOwned(md.owners)) { return; } if (!common.isOwned(md.owners)) { return; }
// We're the owner: add the button and enable the colors if needed // We're the owner: add the button and enable the colors if needed
mkColorByAuthor(framework, markers); mkColorByAuthor(framework, markers);

@ -46,7 +46,7 @@ define([
inclusiveRight: uid === Env.myAuthorId, inclusiveRight: uid === Env.myAuthorId,
css: "background-color: " + rgba, css: "background-color: " + rgba,
attributes: { attributes: {
title: Env.opacity ? Messages._getKey('cba_writtenBy', [name]) : undefined, title: Env.opacity ? Messages._getKey('cba_writtenBy', [name]) : '',
'data-type': 'authormark', 'data-type': 'authormark',
'data-uid': uid 'data-uid': uid
} }
@ -689,7 +689,7 @@ define([
Markers.create = function (config) { Markers.create = function (config) {
var Env = config; var Env = config;
Env.authormarks = Util.clone(DEFAULT); Env.authormarks = {};
Env.enabled = false; Env.enabled = false;
Env.myAuthorId = 0; Env.myAuthorId = 0;

Loading…
Cancel
Save