mirror of
https://github.com/ONLYOFFICE/onlyoffice.github.io.git
synced 2026-04-07 14:04:30 +08:00
[insert-qr] Delete disable for colorpicker
This commit is contained in:
@ -201,9 +201,6 @@
|
||||
// Set the initial color picker values
|
||||
colorpicker.colorpicker('setValue', storedSettings.qrColor || $('#qrColor').val());
|
||||
|
||||
// Disable the colorpicker to prevent unexpected behavior
|
||||
colorpicker.colorpicker('disable');
|
||||
|
||||
// Add event listener for window resize event
|
||||
window.addEventListener('resize', handleResize);
|
||||
|
||||
@ -225,7 +222,6 @@
|
||||
$('#activateQR').change(function () {
|
||||
$('#bgColor').prop('disabled', true);
|
||||
$('#qrColor').prop('disabled', false);
|
||||
colorpicker.colorpicker('enable')
|
||||
selectedInput = 'qrColor';
|
||||
// Reinitialize color picker
|
||||
colorpicker = initializeColorPicker();
|
||||
@ -237,7 +233,6 @@
|
||||
$('#activateBG').change(function () {
|
||||
$('#qrColor').prop('disabled', true);
|
||||
$('#bgColor').prop('disabled', false);
|
||||
colorpicker.colorpicker('enable')
|
||||
selectedInput = 'bgColor';
|
||||
// Reinitialize color picker
|
||||
colorpicker = initializeColorPicker();
|
||||
@ -281,21 +276,6 @@
|
||||
$(this).on('input', delayedValidation);
|
||||
});
|
||||
|
||||
$('#qrColorContainer').on('mouseleave', function () {
|
||||
colorpicker.colorpicker('disable')
|
||||
});
|
||||
|
||||
// Enable the colorpicker when the #qrColorContainer' is clciked
|
||||
$('#qrColorContainer').on('click', function () {
|
||||
colorpicker.colorpicker('enable')
|
||||
});
|
||||
|
||||
// Enable the colorpicker when the '#qrColor, #bgColor' are clciked
|
||||
$('#qrColor, #bgColor').on('click', function () {
|
||||
colorpicker.colorpicker('enable')
|
||||
|
||||
});
|
||||
|
||||
// Function to handle window resize event
|
||||
function handleResize() {
|
||||
let zoom = 1;
|
||||
|
||||
Reference in New Issue
Block a user