“JavaScript not enabled” error when adding to admin dashboard
-
I’m trying to add the chat box to a admin “error notice” and when posting a message I get the “JavaScript not enabled” error. Although the chat box works fine on any regular page.
I’m testing in the twenty-seventeen theme on my localhost and have a blank “chat url” in “Targeted loading” to allow javascript to load on every page. It looks like jQuery is loading for the admin dashboard, but it seems like when I get the error the page is redirecting to “simple-ajax-chat-core.php” If it will help I can create a test site for you to see, but this is the function I’m adding to functions.php to load the chat box in a “error notice”function admin_support_notice() { ?> <div class="error notice support"> <h2><?php _e( 'Support is working on your site - Please save your work and wait for this notice to be removed - Thank You!', 'asn_textdomain' ); ?></h2> <?php if (function_exists('simple_ajax_chat')) simple_ajax_chat(); ?> </div> <?php } add_action( 'admin_notices', 'admin_support_notice' );Thanks in advance
The topic ‘“JavaScript not enabled” error when adding to admin dashboard’ is closed to new replies.