Fix uncommited column in poll hidden in published mode

pull/1/head
yflory 7 years ago
parent 7164d2dfdd
commit 5e8b183ee6

@ -57,7 +57,7 @@ overflow-x: hidden;
#cp-app-poll-form {
flex: 1;
overflow-y: auto;
&.cp-app-poll-published {
&.cp-app-poll-readonly {
#cp-app-poll-table-scroll {
max-width: ~"calc(75% - 30px - 100px)";
}
@ -67,13 +67,15 @@ overflow-x: hidden;
table tr td:last-child {
margin-left: 0; // uncommitted is hidden
}
#cp-app-poll-create-option {
td.cp-app-poll-table-uncommitted {
display: none;
}
.cp-app-poll-table-remove[data-rt-id^="y"], .cp-app-poll-table-edit[data-rt-id^="y"] {
}
&.cp-app-poll-published {
#cp-app-poll-create-option {
display: none;
}
td.cp-app-poll-table-uncommitted {
.cp-app-poll-table-remove[data-rt-id^="y"], .cp-app-poll-table-edit[data-rt-id^="y"] {
display: none;
}
tr.cp-app-poll-table-uncommitted {

@ -1188,6 +1188,10 @@ define([
APP.loggedIn = common.isLoggedIn();
APP.SFCommon = common;
if (APP.readOnly) {
$('#cp-app-poll-form').addClass('cp-app-poll-readonly');
}
APP.origin = common.getMetadataMgr().getPrivateData().origin;
APP.$body = $('body');

Loading…
Cancel
Save