New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.3][1.4] JCSSUtil.php pageaddvar prototype/jquery order and file naming #2170
Comments
refs #1324 (currently scheduled for 2.0.0) |
@espaan how about moving 2) and 3) into another issue to keep things separated? |
A good idea. I did it this way since I wanted to make 1 pr for these points :-)
|
is this documented somewhere? |
this may be difficult since we are loading the library from composer/component |
@craigh I'm reading that the order is always first prototype and then jQ and then noconflict. But not that i is absolutely necessary. The loading from composer is indeed true for 1.4.x, but in 1.3.x jQuery is just within Zikula. For 1.4.x it is also not a problem, since version nr is not in the name already.
|
Point 2) and 3) can be followed up in #2223 |
| Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | - | Fixed tickets | zikula#2174, zikula#1644 | 1.4 PR | in progress | Refs tickets | zikula#2170 | License | LGPLv3+ | Doc PR | - - Imagine vendor plugin is updated to 0.6.2 (nov2014) from 0.3.0 (2012) - added width/height autoscale as option in thumbnail generation - added jpeg_quality/png_compression_level to preset options - added modulename setting to preset option - added option to force remove all thumbnails next to thumb cleanup - updated README and thumb plugin descriptions - updated CHANGELOG
[1.3.x] Updated Imagine plugin with enhancements | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | - | Fixed tickets | zikula#2174, zikula#1644 | 1.4 PR | in progress | Refs tickets | zikula#2170 | License | LGPLv3+ | Doc PR | - - Imagine vendor plugin is updated to 0.6.2 (nov2014) from 0.3.0 (2012) - added width/height autoscale as option in thumbnail generation - added jpeg_quality/png_compression_level to preset options - added modulename setting to preset option - added option to force remove all thumbnails next to thumb cleanup - updated README and thumb plugin descriptions - updated CHANGELOG
Hi,
I'm testing out a new theme conversion with Bootstrap and jQuery.
When I'm using
with the current JCSSUtil.php (1.3 for sure and 1.4 afais) the order is always jquery first, then noconflict.js or jquery_config.js in 1.4 and only then prototype. For the noconflict to work properly afaik the prototype should be loaded first.
So
with a small change in the JCSSUtil.php by putting prototype above in the $scripts array
https://github.com/zikula/core/blob/1.4/src/lib/util/JCSSUtil.php#L365
and
https://github.com/zikula/core/blob/1.3/src/lib/util/JCSSUtil.php#L336
that one will always be loaded before jquery and noconflict and the order will be
follow in [1.3.x] Add jQuery 1.11.2 with migrate as option in 1.3.x #2223 (Only 1.3.x relevant) Furthermore it would be really convenient to rename the jQuery file to a filename without version number. In that way people using 1.3.x can also easily update to a later version of jQuery just by replacing this file with a newer one. And then no code fiddling is needed. In the code example above I already this in my install BTW. So you don't see the version number any more. In 1.4.x jQuery is loaded via composer and does not have a versionnr.
follow in [1.3.x] Add jQuery 1.11.2 with migrate as option in 1.3.x #2223 (only 1.3.x relevant) it would be nice to add a jquery-migrate to the list of pageaddvar options for the reason mentioned under 2. When people use a jquery above 1.9.x then they can also load jq-migrate via pageaddvar and it works. In 1.4.x this is already the case, since jQ > 1.9 is used.
I will make a PR later on for this.
The text was updated successfully, but these errors were encountered: