• Resolved verenar

    (@verenar)


    Hi,

    when I active the plugin, all Javascript does not work and I get the message

    Uncaught TypeError: jQuery(…).dialog is not a function

    The proplem occures here in the voter.js?ver=4.4.2:40 File

    jQuery(function() {
    	dialog = jQuery( "#aheadzen_voting_login" ).dialog({
    		autoOpen: false,
    		height: 350,
    		width: 350,
    		modal: true,
    		open: function() {
                jQuery('.ui-widget-overlay').bind('click', function() {
                    jQuery('#aheadzen_voting_login').dialog('close');
                })
            },
    		close: function() {
    			//alert('CLOSE');
    		}
    	});
    	jQuery( ".aheadzen_voting_add" ).click(function() {
    		jQuery( "#aheadzen_voting_login" ).dialog( "open" );
    	});
    });

    Thank you!

    https://wordpress.org/plugins/voter-plugin/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author aheadzen

    (@aheadzen)

    Hi there,
    It may be possibility that the jquery-ui may be disabled from voter plugin settings. Or any thing else because We cannot find exact problem.
    Then also we have change js include settings so it may solved your problem.
    If still have problem, please share your site url for better understanding.
    Thanks

    performadigital

    (@performadigital)

    Add this to your themes functions.php file. It will use the built in jQuery UI Dialog script from WordPress core:

    function add_jquerydialog_js() {
        wp_enqueue_script( 'jquery-ui-dialog' );
    }
    add_action( 'wp_enqueue_scripts', 'add_jquerydialog_js' );
    Thread Starter verenar

    (@verenar)

    Its working now, thank you very much. 🙂 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Uncaught TypeError: jQuery(…).dialog is not a function’ is closed to new replies.