? Pending

User tests: Successful: Unsuccessful:

avatar dgrammatiko
dgrammatiko
26 May 2021

Pull Request for Issue #34228 .

Summary of Changes

Fixes the ordering

Testing Instructions

Check that HTMLHelper::_('script', 'media/system/js/showon.js', ['detectDebug' => false]); respects the rule and the non minified is served

Also check that HTMLHelper::_('script', 'media/system/js/showon.js'); loads the minified
Enable the DEBUG and check that the non minified is served

Actual result BEFORE applying this Pull Request

Expected result AFTER applying this Pull Request

Documentation Changes Required

avatar dgrammatiko dgrammatiko - open - 26 May 2021
avatar dgrammatiko dgrammatiko - change - 26 May 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 26 May 2021
Category Libraries
avatar Ruud68
Ruud68 - comment - 26 May 2021

This doesn't work:

HTMLHelper::_('script', 'media/system/js/showon.js');

loads showon.js when JDEBUG is false and showon.min.js when JDEBUG is true.

The way it was was correct, this patch 'inverts' the file selection.

avatar dgrammatiko
dgrammatiko - comment - 26 May 2021

Closing as it's not really working (?)

avatar dgrammatiko dgrammatiko - change - 26 May 2021
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2021-05-26 17:23:42
Closed_By dgrammatiko
Labels Added: ?
avatar dgrammatiko dgrammatiko - close - 26 May 2021

Add a Comment

Login with GitHub to post a comment