• Resolved dilico777

    (@dilico777)


    Hi, I get an Uncaught TypeError: jQuery.sortable is not a function when loading the users page in the admin area (/wp-admin/users.php).

    A similar error was reported a while ago [JQuery().sortable error]. The solution was to include jquery-ui-sortable in the list of scripts to load (ref. loadAdminScripts() in beeze-admin.php).

    From what I can see, that script is only loaded for the Breeze settings page though. Instead the breeze-admin.js script (which has the call to the jQuery sortable function) is loaded on every page of the admin area (have I misconfigured the plugin?).

    Not sure if the solution is to limit loading the breeze-admin.js script only for the Breeze settings page, or to always include jquery-ui-sortable in the list of scripts to load.
    Also, I might be completely wrong.

    Thanks!

    Breeze Version 2.0.2

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author adeelkhan

    (@adeelkhan)

    Hi

    The Sortable library is required in Breeze back-end JavaScript and the library is only loaded on the Breeze plugin settings screen. Added JavaScript checks to see if the Sortable library is loaded, if not loaded then the JS code that requires the library will not execute.

    The code will work as normal on the Breeze settings screen and not execute on other wp-admin pages.
    The warning is fixed and will be used in our upcoming release.

    Thread Starter dilico777

    (@dilico777)

    Brilliant!
    Thank you for looking into it.
    I’ll check again when the new release comes out.

    Thread Starter dilico777

    (@dilico777)

    Hi!

    I’ve just checked with the new version of the Breeze plugin (2.0.3), and the error is still occurring.

    Do you know if the fix made into the release?

    Thanks!

    Plugin Author adeelkhan

    (@adeelkhan)

    The issue fix in 2.0.4.
    Kindly download the latest version.

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

The topic ‘Uncaught TypeError: jQuery.sortable is not a function’ is closed to new replies.