Fixed settings color picker loading issue.
This commit is contained in:
@@ -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;
|
||||
|
||||
// Cookie functions
|
||||
@@ -196,4 +196,4 @@ jQuery(function ($) {
|
||||
}
|
||||
|
||||
$(document).ready(documentReady);
|
||||
});
|
||||
})(jQuery);
|
||||
|
||||
@@ -29,8 +29,8 @@ Copyright: © 2020 CleverOgre, Inc. All rights reserved.
|
||||
`'---' `--' `" `'-'
|
||||
*/
|
||||
|
||||
jQuery(function ($) {
|
||||
$(document).on('ready', function () {
|
||||
(function ($) {
|
||||
$(document).ready(function () {
|
||||
if ($.fn.datepicker) {
|
||||
// Not using datepicker atm
|
||||
/* $('.ogrealert-date-picker').datepicker({
|
||||
@@ -40,4 +40,4 @@ jQuery(function ($) {
|
||||
console.log('OgreAlert Error: datepicker does not exist.');
|
||||
}
|
||||
});
|
||||
});
|
||||
})(jQuery);
|
||||
|
||||
@@ -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