don't create color-picker if readonly

pull/1/head
ansuz 8 years ago
parent b2a70f86d3
commit 1b66383bac

@ -338,12 +338,12 @@ window.canvas = canvas;
}); });
$rightside.append($forget); $rightside.append($forget);
makeColorButton($rightside);
var editHash; var editHash;
if (!readOnly) { if (!readOnly) {
editHash = Cryptpad.getEditHashFromKeys(info.channel, secret.keys); editHash = Cryptpad.getEditHashFromKeys(info.channel, secret.keys);
makeColorButton($rightside);
} }
if (!readOnly) { Cryptpad.replaceHash(editHash); } if (!readOnly) { Cryptpad.replaceHash(editHash); }
}; };

Loading…
Cancel
Save