mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-22 07:23:01 +01:00
breaking: remove unused colorpicker
This commit is contained in:
@@ -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;
|
||||
});
|
||||
Reference in New Issue
Block a user