From 796bf240cc08ea1aa61ca02c3ce320d7b1fa99e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sun, 9 Oct 2022 20:59:08 -0400 Subject: [PATCH] breaking: remove unused colorpicker --- public/src/admin/modules/colorpicker.js | 31 ------------------------- 1 file changed, 31 deletions(-) delete mode 100644 public/src/admin/modules/colorpicker.js diff --git a/public/src/admin/modules/colorpicker.js b/public/src/admin/modules/colorpicker.js deleted file mode 100644 index 3b64164647..0000000000 --- a/public/src/admin/modules/colorpicker.js +++ /dev/null @@ -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; -});