Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have problem to run jquery dialog right. Here is what i do:

I'm adding

wp_enqueue_script('jquery-ui-dialog', array('jquery'));

next

jQuery(function($) {
    $(".commnetsRights").dialog({
        autoOpen: false,
        show: {
            effect: "blind",
            duration: 1000
        },
        hide: {
            effect: "explode",
            duration: 1000
        }
    });

    $(".commentsDialogRights").click(function() {
        $(".commnetsRights").dialog("open");
    });
});

And the result is: Uncaught TypeError: Object #<Object> has no method '_hoverable' jquery.ui.dialog.min.js?ver=1.9.2:5

share|improve this question
    
Typo: $(".commnetsRights").dialog({ –  vancoder Jul 3 '13 at 16:18
    
What do you mean by that ? –  Devoted Jul 3 '13 at 17:27
    
Is your class actually called commnetsRights or commentsRights? You don't show that code. Though it may be incidental to your issue. –  vancoder Jul 3 '13 at 17:29
    
That's a spell mistake. Thank you , but this is not the problem –  Devoted Jul 3 '13 at 17:32
    
Maybe missing something ? I just add jquery-ui-dialog only. Should i load anything else ? –  Devoted Jul 3 '13 at 17:46
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.