Fixed settings color picker loading issue.
This commit is contained in:
@@ -29,12 +29,12 @@ Copyright: © 2020 CleverOgre, Inc. All rights reserved.
|
||||
`'---' `--' `" `'-'
|
||||
*/
|
||||
|
||||
jQuery(function ($) {
|
||||
$(document).on('ready', function () {
|
||||
(function ($) {
|
||||
$(document).ready(function () {
|
||||
if ($.fn.wpColorPicker) {
|
||||
$('.ogrealert-color-picker').wpColorPicker();
|
||||
} else {
|
||||
console.log('OgreAlert Error: wpColorPicker does not exist.');
|
||||
}
|
||||
});
|
||||
});
|
||||
})(jQuery);
|
||||
|
||||
Reference in New Issue
Block a user