dashboard dialog and jquery tabs ...

Permalink 1 user found helpful
Hi,
I'm currently developping a website using concrete5, and I tried to modify the dashboard to add new features for my customer (including an editing catalog feature)

anyway, i have some problems with jquery: the included version of jquery and jquery.ui used in the dashboard is giving me lots of problems...

For instance I couldn't use the initial jquery dialog with ajax content, but only the "ccm.dialog" used by the dashboard... The issue is that some jquery.ui methods can't work with this dialog!

so, I'm basically trying to make a call to the "tabs()" function inside the ajax content of a ccm.dialog ...

Can someone help me please?

Sorry if my english's not perfect, I'm french :)

 
jbx replied on at Permalink Reply
jbx
The current bundled version of jquery doesn't include tabs().

If you download the latest jquery.ui.js and jquery.ui.css and save them into your root js and css folders respectively, then you can use tabs().

Hope that helps :)

Jon
barney42 replied on at Permalink Reply
Thanks for your reply, but I was afraid that it would alter the core of concrete5, since it's based on a "specific" version of jquery ... So just to be sure, you say that if I replace the jquery.ui.js and jquery.ui.css by their latest release from the jquery website, the tabs() function will work ?
jbx replied on at Permalink Best Answer Reply
jbx
It will yes. But make sure you don't overwrite the existing files. The core files are stored in /concrete/js and /concrete/css. Make sure you put yours in /js and /css. That way, if you get any problems later on, you can just take them out again.

I'm currently using them and have no problems :)

Jon
barney42 replied on at Permalink Reply
it works! Thank you very much for you help :) Concrete5 members rule! :)
jbx replied on at Permalink Reply
jbx
No problem :)
If you can mark my answer as the correct answer (click the orange icon by the post) then I get Karma points for my profile :)

Thanks,

Jon
TheRealSean replied on at Permalink Reply
TheRealSean
Does anyone know what the default Options are for the Concrete jquery ui?

I want to include tabs, but not to sure which of the other options I should include?

Thanks
JohntheFish replied on at Permalink Reply
JohntheFish
I would load the full C5 packaged jquery.ui. While you could load just the tabs component, the full ui is more likely to be in a browser cache, especially when 5.5 enables use of CDN versions and has a c5 dialog that does not clash with ui.dialog.

For quick UI hacks, I have a small add-on awaiting approval that loads ui for view. Also available attached to this forum post:
http://www.concrete5.org/community/forums/usage/datepicker-inside-o...