Fix uncommited column in poll hidden in published mode
This commit is contained in:
parent
7164d2dfdd
commit
5e8b183ee6
@ -57,7 +57,7 @@ overflow-x: hidden;
|
|||||||
#cp-app-poll-form {
|
#cp-app-poll-form {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
&.cp-app-poll-published {
|
&.cp-app-poll-readonly {
|
||||||
#cp-app-poll-table-scroll {
|
#cp-app-poll-table-scroll {
|
||||||
max-width: ~"calc(75% - 30px - 100px)";
|
max-width: ~"calc(75% - 30px - 100px)";
|
||||||
}
|
}
|
||||||
@ -67,15 +67,17 @@ overflow-x: hidden;
|
|||||||
table tr td:last-child {
|
table tr td:last-child {
|
||||||
margin-left: 0; // uncommitted is hidden
|
margin-left: 0; // uncommitted is hidden
|
||||||
}
|
}
|
||||||
|
td.cp-app-poll-table-uncommitted {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&.cp-app-poll-published {
|
||||||
#cp-app-poll-create-option {
|
#cp-app-poll-create-option {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.cp-app-poll-table-remove[data-rt-id^="y"], .cp-app-poll-table-edit[data-rt-id^="y"] {
|
.cp-app-poll-table-remove[data-rt-id^="y"], .cp-app-poll-table-edit[data-rt-id^="y"] {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
td.cp-app-poll-table-uncommitted {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
tr.cp-app-poll-table-uncommitted {
|
tr.cp-app-poll-table-uncommitted {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1188,6 +1188,10 @@ define([
|
|||||||
APP.loggedIn = common.isLoggedIn();
|
APP.loggedIn = common.isLoggedIn();
|
||||||
APP.SFCommon = common;
|
APP.SFCommon = common;
|
||||||
|
|
||||||
|
if (APP.readOnly) {
|
||||||
|
$('#cp-app-poll-form').addClass('cp-app-poll-readonly');
|
||||||
|
}
|
||||||
|
|
||||||
APP.origin = common.getMetadataMgr().getPrivateData().origin;
|
APP.origin = common.getMetadataMgr().getPrivateData().origin;
|
||||||
|
|
||||||
APP.$body = $('body');
|
APP.$body = $('body');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user