Fixed settings color picker loading issue.

This commit is contained in:
dcooperdalrymple
2022-12-06 16:01:27 -06:00
parent 7743278185
commit 457c17d5d3
3 changed files with 8 additions and 8 deletions

View File

@@ -29,7 +29,7 @@ Copyright: © 2020 CleverOgre, Inc. All rights reserved.
`'---' `--' `" `'-' `'---' `--' `" `'-'
*/ */
jQuery(function ($) { (function ($) {
if (typeof ogrealert === 'undefined' || ogrealert == null || ogrealert.length <= 0) return falase; if (typeof ogrealert === 'undefined' || ogrealert == null || ogrealert.length <= 0) return falase;
// Cookie functions // Cookie functions
@@ -196,4 +196,4 @@ jQuery(function ($) {
} }
$(document).ready(documentReady); $(document).ready(documentReady);
}); })(jQuery);

View File

@@ -29,8 +29,8 @@ Copyright: © 2020 CleverOgre, Inc. All rights reserved.
`'---' `--' `" `'-' `'---' `--' `" `'-'
*/ */
jQuery(function ($) { (function ($) {
$(document).on('ready', function () { $(document).ready(function () {
if ($.fn.datepicker) { if ($.fn.datepicker) {
// Not using datepicker atm // Not using datepicker atm
/* $('.ogrealert-date-picker').datepicker({ /* $('.ogrealert-date-picker').datepicker({
@@ -40,4 +40,4 @@ jQuery(function ($) {
console.log('OgreAlert Error: datepicker does not exist.'); console.log('OgreAlert Error: datepicker does not exist.');
} }
}); });
}); })(jQuery);

View File

@@ -29,12 +29,12 @@ Copyright: © 2020 CleverOgre, Inc. All rights reserved.
`'---' `--' `" `'-' `'---' `--' `" `'-'
*/ */
jQuery(function ($) { (function ($) {
$(document).on('ready', function () { $(document).ready(function () {
if ($.fn.wpColorPicker) { if ($.fn.wpColorPicker) {
$('.ogrealert-color-picker').wpColorPicker(); $('.ogrealert-color-picker').wpColorPicker();
} else { } else {
console.log('OgreAlert Error: wpColorPicker does not exist.'); console.log('OgreAlert Error: wpColorPicker does not exist.');
} }
}); });
}); })(jQuery);