Load jQuery UI attribute issue in Concrete5.5.1

Permalink Browser Info Environment
This add-on worked great with Concrete5.4.2.2, but since upgrading, if the Load jQuery UI custom attribute is set for a page, the Edit Toolbar is completely empty making it impossible to edit the page. You can work around it by unchecking the attribute, making edits, then rechecking the attribute.

Type: Discussion
Status: Archived
gynntech
View Replies:
JohntheFish replied on at Permalink Reply
JohntheFish
I don't think this is a LoadUI problem. I have just added the load UI attribute to a 5.5.1 site (greek yogurt) and do not have this issue.

At the moment, I cant think of anything LoadUI does that could interfere with the menu. A blank menu/toolbar is the result of a javascript error before it is complete. LoadUI makes the javascript available. It doesn't actually do anything with it (there is no javascript within LoadUI!).

It may be that the jquery.ui code you had written/included is now conflicting with something in the C5 dashboard (which works in a different way).

Another possibility is if your jquery code was not inside a document ready, and the timing/sequencing of loads will have changed with 5.5.1

If you are in chrome or firefox, please look at the developer console and see if you are getting any jquery errors.

If that doesn't help, then please PM the URL and a temporary admin login and I will have a look.
JohntheFish replied on at Permalink Reply
JohntheFish
This issue was tracked to a sequence of multiple loads causing a "Cannot read property 'dialog' of undefined" error in a C5 script block.

The multiple loads should not have happened. addHeaderItem is only supposed to add each header item once.

Nevertheless, I have updated Load jQuery.UI (v1.2) to skip the addHeaderItem part if a user is logged in. This removes the opportunities for bugs in other code to interfere with what Load jQuery.UI does.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.