Adds setting for controlling the outer style of the popup
This commit is contained in:
parent
118f200500
commit
3272948284
@ -128,7 +128,8 @@
|
||||
content: counter(audio-source-id);
|
||||
}
|
||||
|
||||
#custom-popup-css {
|
||||
#custom-popup-css,
|
||||
#custom-popup-outer-css {
|
||||
width: 100%;
|
||||
min-height: 34px;
|
||||
height: 96px;
|
||||
|
@ -278,7 +278,8 @@ function profileOptionsCreateDefaults() {
|
||||
mainDictionary: '',
|
||||
popupTheme: 'default',
|
||||
popupOuterTheme: 'default',
|
||||
customPopupCss: ''
|
||||
customPopupCss: '',
|
||||
customPopupOuterCss: ''
|
||||
},
|
||||
|
||||
audio: {
|
||||
|
@ -42,6 +42,7 @@ async function formRead(options) {
|
||||
options.general.popupTheme = $('#popup-theme').val();
|
||||
options.general.popupOuterTheme = $('#popup-outer-theme').val();
|
||||
options.general.customPopupCss = $('#custom-popup-css').val();
|
||||
options.general.customPopupOuterCss = $('#custom-popup-outer-css').val();
|
||||
|
||||
options.audio.enabled = $('#audio-playback-enabled').prop('checked');
|
||||
options.audio.autoPlay = $('#auto-play-audio').prop('checked');
|
||||
@ -112,6 +113,7 @@ async function formWrite(options) {
|
||||
$('#popup-theme').val(options.general.popupTheme);
|
||||
$('#popup-outer-theme').val(options.general.popupOuterTheme);
|
||||
$('#custom-popup-css').val(options.general.customPopupCss);
|
||||
$('#custom-popup-outer-css').val(options.general.customPopupOuterCss);
|
||||
|
||||
$('#audio-playback-enabled').prop('checked', options.audio.enabled);
|
||||
$('#auto-play-audio').prop('checked', options.audio.autoPlay);
|
||||
|
@ -252,8 +252,16 @@
|
||||
</div>
|
||||
|
||||
<div class="form-group options-advanced">
|
||||
<label for="custom-popup-css">Custom popup CSS</label>
|
||||
<div><textarea autocomplete="off" spellcheck="false" wrap="soft" id="custom-popup-css" class="form-control"></textarea></div>
|
||||
<div class="row">
|
||||
<div class="col-xs-6">
|
||||
<label for="custom-popup-css">Custom popup CSS</label>
|
||||
<div><textarea autocomplete="off" spellcheck="false" wrap="soft" id="custom-popup-css" class="form-control"></textarea></div>
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
<label for="custom-popup-outer-css">Custom popup outer CSS</label>
|
||||
<div><textarea autocomplete="off" spellcheck="false" wrap="soft" id="custom-popup-outer-css" class="form-control"></textarea></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group ignore-form-changes" style="display: none;" id="settings-popup-preview-settings">
|
||||
|
Loading…
Reference in New Issue
Block a user