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

    (@sormano)

    Hi Geoffrey,

    Thanks for reporting!

    Any other problems or just the JS error? (did everything still work fine?)

    I’ll get into it!

    Jeroen Sormani

    Plugin Author Jeroen Sormani

    (@sormano)

    Hey Geoffrey,

    I’ve tried to reproduce, but no luck so far.

    Since it has to do with Sortable its probably because jQuery UI is not getting loaded at your setup, could that be right?

    If so, if you replace line 74 of the main wp-dashboard-notes.php file with the line below it should solve it.
    wp_enqueue_script( 'wpdn_admin_js', plugin_dir_url( __FILE__ ) . 'assets/js/wpdn_admin.js', array( 'jquery', 'jquery-ui-sortable' ) );
    (unfortunately couldn’t test it since I don’t get the error, so I hope you could confirm).

    If thats not working, also a second one that could be tried:
    wp_enqueue_script( 'wpdn_admin_js', plugin_dir_url( __FILE__ ) . 'assets/js/wpdn_admin.js', array( 'jquery', 'jquery-ui-core' ) );

    I know it might be a lot to ask, but if you could check that’d be awesome.

    Any info about your setup would be cool to.

    Cheers,

    Jeroen

    Thread Starter Geoffrey

    (@creativejuiz)

    Hi Jeroen,

    Thank you for your quick fix, it’s ok for me with the first solution (by adding ‘jquery-ui-sortable’ as dependency).

    Again, thank you very much.
    Have a nice day,
    Geoffrey

    PS : sorry for the delay

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘JS error on WP Admin’ is closed to new replies.