Bug #22570

Loading scriptaculous with all modules fails with t3lib_compressor

Added by Steffen Gebert over 5 years ago. Updated about 5 years ago.

Status:Closed Start date:2010-05-03
Priority:Should have Due date:
Assigned To:Steffen Kamper % Done:

0%

Category:- Spent time: -
Target version:-
TYPO3 Version:4.4 Is Regression:
PHP Version:5.3 Sprint Focus:
Complexity:

Description

If you include scriptaculous.js without an addional ?load=mod1,mod2 it loads all its modules:

includes = s.src.match(/\?.*load=([a-z,]*)/);
  includes ? includes[1] : 'builder,effects,dragdrop,controls,slider,sound').split(',').each(
  function(include) { Scriptaculous.require(path+include+'.js') });
});

This doesn't work, when the compressor moved scriptaculous.js into typo3temp/, but not the module scripts.

We have to treat PageRenderer::loadProtaculous() as loadProtaculous('all'), as this is the behavior, which protaculous always did, but now it's not able to do so itself.
So by taking 'all', when no parameter given, we add all modules.

This problem can be observed using IRRE. Sortable is undefined there.
(issue imported from #M14283)

14283.diff Magnifier (591 Bytes) Administrator Admin, 2010-05-03 09:44


Related issues

related to Core - Bug #22565: Improve t3lib_compressor Closed 2010-05-02

History

#1 Updated by Steffen Kamper over 5 years ago

Committed to trunk rev 7525

Also available in: Atom PDF