MantisBT - Piwigo
View Issue Details
0002268Piwigotemplatepublic2011.04.18 17:292011.04.19 22:10
flop25 
rvelices 
highmajorhave not tried
closedfixed 
2.2.1 
2.2.22.2.2 
any
Apache 1.3.x
0002268: Required script loaded in the footer instead of the header
If it's required in the header and the footer, the script will be loaded in the footer instead of the header.
{combine_script id='jquery.tipTip.minified' load='header' require='jquery' path='themes/OS_glass/tiptip/jquery.tipTip.minified.js'}
{footer_script require='jquery'}{literal}
$(document).ready(function () {
....{literal}{/footer_script}

will add the script jquery in the footer and not in the header !
No tags attached.
Issue History
2011.04.18 17:29flop25New Issue
2011.04.18 17:29flop25browser => any
2011.04.18 17:29flop25Web server => Apache 1.3.x
2011.04.19 09:10rvelicesNote Added: 0005022
2011.04.19 13:36flop25Note Added: 0005023
2011.04.19 14:54flop25Target Version => 2.2.2
2011.04.19 22:08svnCheckin
2011.04.19 22:08svnNote Added: 0005024
2011.04.19 22:09svnCheckin
2011.04.19 22:09svnNote Added: 0005025
2011.04.19 22:09rvelicesStatusnew => assigned
2011.04.19 22:09rvelicesAssigned To => rvelices
2011.04.19 22:10rvelicesStatusassigned => closed
2011.04.19 22:10rvelicesResolutionopen => fixed
2011.04.19 22:10rvelicesFixed in Version => 2.2.2

Notes
(0005022)
rvelices   
2011.04.19 09:10   
I cannot reproduce. It should work correctly unless the header has already been parsed at the time of your call combine_script ...
(0005023)
flop25   
2011.04.19 13:36   
But the script (tipTip here) is loaded in the header but not the jquery required !
The {combine} tag is from a theme (OS_glass as you can see) and the footer tag is from a Template ext (mainpage_categories)
(0005024)
svn   
2011.04.19 22:08   
[Subversion] r10503 by rvelices on trunk

-----[Subversion commit log]----------------------------------------------------
bug:2268 combine_script - sometimes precedent scripts were not being loaded before ...
in admin, the accordion is loaded in the header (admin pages have the same header combined script, but usually different bottom scripts)
(0005025)
svn   
2011.04.19 22:09   
[Subversion] r10504 by rvelices on branch 2.2

-----[Subversion commit log]----------------------------------------------------
bug:2268 combine_script - sometimes precedent scripts were not being loaded before ...
in admin, the accordion is loaded in the header (admin pages have the same header combined script, but usually different bottom scripts)