Remove history and snapshots entries for participants

pull/1/head
yflory 4 years ago
parent 79cfce1f5a
commit a435b1c12d

@ -927,7 +927,9 @@ define([
} }
var $importTemplateButton = common.createButton('importtemplate', true); var $importTemplateButton = common.createButton('importtemplate', true);
if (!readOnly) {
toolbar.$drawer.append($importTemplateButton); toolbar.$drawer.append($importTemplateButton);
}
/* add a forget button */ /* add a forget button */
toolbar.$drawer.append(common.createButton('forget', true, {}, function (err) { toolbar.$drawer.append(common.createButton('forget', true, {}, function (err) {

@ -37,7 +37,7 @@
} }
} }
&.cp-readonly { &.cp-form-readonly {
.cp-form-creator-inline-add { .cp-form-creator-inline-add {
display: none; display: none;
} }

@ -2340,19 +2340,21 @@ define([
if (editable) { if (editable) {
if (APP.mainSortable) { APP.mainSortable.options.filter = oldFilter; } if (APP.mainSortable) { APP.mainSortable.options.filter = oldFilter; }
if (!APP.isEditor) { $(offlineEl).remove(); } if (!APP.isEditor) { $(offlineEl).remove(); }
$body.removeClass('cp-readonly'); $body.removeClass('cp-form-readonly');
} else { } else {
if (APP.mainSortable) { if (APP.mainSortable) {
oldFilter = APP.mainSortable.options.filter; oldFilter = APP.mainSortable.options.filter;
APP.mainSortable.options.filter = function () { return true; }; APP.mainSortable.options.filter = function () { return true; };
} }
if (!APP.isEditor) { $('.cp-help-container').before(offlineEl); } if (!APP.isEditor) { $('.cp-help-container').before(offlineEl); }
$body.addClass('cp-readonly'); $body.addClass('cp-form-readonly');
} }
}); });
if (!APP.isEditor) { if (!APP.isEditor) {
framework._.toolbar.alone(); framework._.toolbar.alone();
$('.cp-toolbar-icon-history').hide();
$('.cp-toolbar-icon-snapshots').hide();
} }
var makeFormSettings = function () { var makeFormSettings = function () {

Loading…
Cancel
Save