You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
I kept having a GraphPie related problem when i click on the Home button from another view. The problem was coming from:
GraphPie.js
...e=(b.parent().width()-2*d)/2...
and the error log in the console would be:
"...b.parent(...).width() is not a function..."
I think this is because the js is executed before jquery is loaded, especially if you are moving to the Home view from another view (It's not the first loading of the page).
I resolved the issue by modifying the header.ctp file to include jquery:
I think it would be better to implement this in future releases. So jquery is always available. Or find a way to ensure that angular.js will always load jquery before running a function that needs it.
Thanks!
Regards,
Mike.
The text was updated successfully, but these errors were encountered:
I kept having a GraphPie related problem when i click on the Home button from another view. The problem was coming from:
GraphPie.js
and the error log in the console would be:
"...b.parent(...).width() is not a function..."
I think this is because the js is executed before jquery is loaded, especially if you are moving to the Home view from another view (It's not the first loading of the page).
I resolved the issue by modifying the header.ctp file to include jquery:
I think it would be better to implement this in future releases. So jquery is always available. Or find a way to ensure that angular.js will always load jquery before running a function that needs it.
Thanks!
Regards,
Mike.
The text was updated successfully, but these errors were encountered: