diff --git a/src/editor/components/jgraduate/jQuery.jPicker.js b/src/editor/components/jgraduate/jQuery.jPicker.js index 6b9f2fb2..d078631b 100755 --- a/src/editor/components/jgraduate/jQuery.jPicker.js +++ b/src/editor/components/jgraduate/jQuery.jPicker.js @@ -17,6 +17,7 @@ */ /* eslint-disable no-bitwise */ /* eslint-disable max-len */ +/* globals svgEditor */ import ColorValuePicker from './ColorValuePicker.js'; import Slider from './Slider.js'; import { findPos, mergeDeep } from './Util.js'; @@ -627,10 +628,11 @@ export function jPickerMethod (elem, options, commitCallback, liveCallback, canc if (settings.window.expandable) { const content = document.createElement('span'); content.classList.add('jPicker'); + // eslint-disable-next-line no-unsanitized/property content.innerHTML = ` - + `; that.insertAdjacentElement('afterend', content); @@ -1322,45 +1324,46 @@ export function jPickerMethod (elem, options, commitCallback, liveCallback, canc const all = color.active.val('all'); if (win.alphaPrecision < 0) win.alphaPrecision = 0; else if (win.alphaPrecision > 2) win.alphaPrecision = 2; + // eslint-disable-next-line no-unsanitized/property const controlHtml = `
${win.title || localization.text.title} |
+ ${win.title || svgEditor.i18next.t('config.jpicker_title')} |
${localization.text.newColor} |
- ${svgEditor.i18next.t('config.jpicker_new_color')} |
+ |||||
| - | ° | ++ | ° | |||||
| - | % | ++ | % | |||||
| % |
+ % |
|||||||
| - | + | + | ||||||
| - | + | + | ||||||
| - | + | + | ||||||
| ${win.alphaSupport ? `` : ' '} | -${win.alphaSupport ? ` %` : ' '} | +${win.alphaSupport ? `` : ' '} | +${win.alphaSupport ? ` %` : ' '} | |||||
| ${win.alphaSupport ? ` | ` : ' '} +${win.alphaSupport ? ` | ` : ' '}|||||||