Remove history and snapshots entries for participants
parent
79cfce1f5a
commit
a435b1c12d
|
@ -927,7 +927,9 @@ define([
|
|||
}
|
||||
|
||||
var $importTemplateButton = common.createButton('importtemplate', true);
|
||||
toolbar.$drawer.append($importTemplateButton);
|
||||
if (!readOnly) {
|
||||
toolbar.$drawer.append($importTemplateButton);
|
||||
}
|
||||
|
||||
/* add a forget button */
|
||||
toolbar.$drawer.append(common.createButton('forget', true, {}, function (err) {
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
&.cp-readonly {
|
||||
&.cp-form-readonly {
|
||||
.cp-form-creator-inline-add {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
@ -2340,19 +2340,21 @@ define([
|
|||
if (editable) {
|
||||
if (APP.mainSortable) { APP.mainSortable.options.filter = oldFilter; }
|
||||
if (!APP.isEditor) { $(offlineEl).remove(); }
|
||||
$body.removeClass('cp-readonly');
|
||||
$body.removeClass('cp-form-readonly');
|
||||
} else {
|
||||
if (APP.mainSortable) {
|
||||
oldFilter = APP.mainSortable.options.filter;
|
||||
APP.mainSortable.options.filter = function () { return true; };
|
||||
}
|
||||
if (!APP.isEditor) { $('.cp-help-container').before(offlineEl); }
|
||||
$body.addClass('cp-readonly');
|
||||
$body.addClass('cp-form-readonly');
|
||||
}
|
||||
});
|
||||
|
||||
if (!APP.isEditor) {
|
||||
framework._.toolbar.alone();
|
||||
$('.cp-toolbar-icon-history').hide();
|
||||
$('.cp-toolbar-icon-snapshots').hide();
|
||||
}
|
||||
|
||||
var makeFormSettings = function () {
|
||||
|
|
Loading…
Reference in New Issue