?
avatar creativeprogramming
creativeprogramming
25 Mar 2016

Hi, is it time to get rid of the squeezebox modal implementation?

This is still a thing that requieres mootools, so it's not true that Joomla 3 is mootools free

avatar creativeprogramming creativeprogramming - open - 25 Mar 2016
avatar creativeprogramming creativeprogramming - change - 25 Mar 2016
Title
Mootools is still required
Mootools is still required by modals
avatar mbabker
mbabker - comment - 25 Mar 2016

Nobody has ever claimed Joomla 3 is MooTools free and if they did they were mistaken. The dependence on MooTools has loosened heavily with Joomla 3 and is almost non-existent, but until 4.0 Joomla will at least ship with MooTools (even if the day comes where no core APIs use it).

avatar creativeprogramming
creativeprogramming - comment - 25 Mar 2016

Ok sorry, anyway if you disable mootools scripts with Joomla 3, e.g. with a plugin, in order to optimize the page load time, you get squeezebox errors and lose some vital functions in admin backend that requirers modals.

I solved this for my case hacking behaivors.php to load the Squeezebox only on admin side (and defining exception mootool disabler plugin), but i guess many users have modals requirements also in frontend and they would be very happy to get rid of mootools having modals working well.

Any hope to see a replacement for the current modal implementation before Joomla 4? I mean, there's some alternative for sure. Bootbox, for instance?

Did you started reasoning/testing about it?

That "modal" issue is really annoyng as it's also a CSS conflict with many frameworks

avatar mbabker
mbabker - comment - 25 Mar 2016

Honestly, if you're running scripts that unloads core media then you need to be prepared for stuff not working right if there's an underlying dependency. Every media library is explicitly loaded only when it is needed by something, so stuff like MooTools or jQuery aren't being arbitrarily loaded by Joomla on every page load (but thanks to so many things being dependent on it jQuery does end up in place more often than not).

Some modals are converted to Bootstrap modals, others aren't. The ones that aren't are more complex to deal with (see the recent issues on here about the media and users fields for example).

avatar brianteeman brianteeman - close - 25 Mar 2016
avatar brianteeman brianteeman - close - 25 Mar 2016
avatar creativeprogramming
creativeprogramming - comment - 25 Mar 2016

Ok i understand it can be more complex than how i optimistically guessed. Thanks

avatar creativeprogramming creativeprogramming - change - 25 Mar 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-03-25 17:47:10
Closed_By creativeprogramming
avatar creativeprogramming creativeprogramming - close - 25 Mar 2016
avatar brianteeman brianteeman - close - 25 Mar 2016
avatar creativeprogramming creativeprogramming - close - 25 Mar 2016
avatar creativeprogramming
creativeprogramming - comment - 25 Mar 2016

Some modals are converted to Bootstrap modals, others aren't. The ones that aren't are more complex to deal with (see the recent issues on here about the media and users fields for example).

@mbabker
I was thinnking to look for a drop-in replacement for the mootools modal implementation, not refactoring all the usages.

avatar mbabker
mbabker - comment - 25 Mar 2016

AFAIK there isn't a drop in replacement for Squeezebox.

avatar brianteeman brianteeman - change - 22 Apr 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 22 Apr 2016
Labels Removed: ?
avatar brianteeman brianteeman - change - 22 Apr 2016
Labels Added: ?

Add a Comment

Login with GitHub to post a comment