mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-10-19 15:56:07 +00:00
2cf0cf0de1
- Replace all default exports with named exports, except for Vue SFCs - Remove names from Vue SFCs, they are automatically inferred from the filename - Misc whitespace-related tweaks
13 lines
377 B
JavaScript
13 lines
377 B
JavaScript
import $ from 'jquery';
|
|
import {createColorPicker} from '../colorpicker.js';
|
|
|
|
export function initCompColorPicker() {
|
|
createColorPicker($('.color-picker'));
|
|
|
|
$('.precolors .color').on('click', function () {
|
|
const color_hex = $(this).data('color-hex');
|
|
$('.color-picker').val(color_hex);
|
|
$('.minicolors-swatch-color').css('background-color', color_hex);
|
|
});
|
|
}
|