breaking: remove unused colorpicker

This commit is contained in:
Barış Soner Uşaklı
2022-10-09 20:59:08 -04:00
parent 4505229661
commit 796bf240cc

View File

@@ -1,31 +0,0 @@
'use strict';
// TODO: no longer used remove in 1.19.0
define('admin/modules/colorpicker', function () {
const colorpicker = {};
colorpicker.enable = function (inputEl, callback) {
(inputEl instanceof jQuery ? inputEl : $(inputEl)).each(function () {
const $this = $(this);
$this.ColorPicker({
color: $this.val() || '#000',
onChange: function (hsb, hex) {
$this.val('#' + hex);
if (typeof callback === 'function') {
callback(hsb, hex);
}
},
onShow: function (colpkr) {
$(colpkr).css('z-index', 1051);
},
});
$(window).one('action:ajaxify.start', function () {
$this.ColorPickerHide();
});
});
};
return colorpicker;
});