Small fixes

preview-refactor
dgtlmoon 3 months ago
parent 49cf58dc4f
commit 7b7d23d975

@ -78,9 +78,7 @@ $(document).ready(function () {
$("#activate-text-preview").click(function (e) { $("#activate-text-preview").click(function (e) {
$('body').toggleClass('preview-text-enabled') $('body').toggleClass('preview-text-enabled')
request_textpreview_update(); request_textpreview_update();
const method = $('body').hasClass('preview-text-enabled') ? 'on' : 'off'; const method = $('body').hasClass('preview-text-enabled') ? 'on' : 'off';
$("#text-preview-refresh")[method]('click', debounced_request_textpreview_update);
$('textarea:visible')[method]('keyup blur', debounced_request_textpreview_update); $('textarea:visible')[method]('keyup blur', debounced_request_textpreview_update);
$('input:visible')[method]('keyup blur change', debounced_request_textpreview_update); $('input:visible')[method]('keyup blur change', debounced_request_textpreview_update);
$("#filters-and-triggers-tab")[method]('click', debounced_request_textpreview_update); $("#filters-and-triggers-tab")[method]('click', debounced_request_textpreview_update);

@ -111,7 +111,7 @@ button.toggle-button {
#pure-menu-horizontal-spinner { #pure-menu-horizontal-spinner {
height: 3px; height: 3px;
background: linear-gradient(-75deg, #ed5900, #ed8600, #edc600, #ed0000); background: linear-gradient(-75deg, #ff6000, #ff8f00, #ffdd00, #ed0000);
background-size: 400% 400%; background-size: 400% 400%;
width: 100%; width: 100%;
animation: gradient 200s ease infinite; animation: gradient 200s ease infinite;

@ -577,7 +577,7 @@ button.toggle-button {
#pure-menu-horizontal-spinner { #pure-menu-horizontal-spinner {
height: 3px; height: 3px;
background: linear-gradient(-75deg, #ed5900, #ed8600, #edc600, #ed0000); background: linear-gradient(-75deg, #ff6000, #ff8f00, #ffdd00, #ed0000);
background-size: 400% 400%; background-size: 400% 400%;
width: 100%; width: 100%;
animation: gradient 200s ease infinite; } animation: gradient 200s ease infinite; }

Loading…
Cancel
Save