RequestReduce icon indicating copy to clipboard operation
RequestReduce copied to clipboard

Javascript processing of Elfinder.org package

Open ngjermundshaug opened this issue 13 years ago • 3 comments

Minimizing Elfinder (www.elfinder.org) does not work properly. Produces javascript errors.

Had to add this filter to make it work: RequestReduce.Api.Registry.AddFilter(new RequestReduce.Api.JavascriptFilter(x => x.FilteredUrl.ToLower().Contains("commands/t"))); RequestReduce.Api.Registry.AddFilter(new RequestReduce.Api.JavascriptFilter(x => x.FilteredUrl.ToLower().Contains("commands/u"))); RequestReduce.Api.Registry.AddFilter(new RequestReduce.Api.JavascriptFilter(x => x.FilteredUrl.ToLower().Contains("commands/v")));

ElFinder can be download here (maximized): https://github.com/Studio-42/elFinder/zipball/2.x

ngjermundshaug avatar Jun 18 '12 06:06 ngjermundshaug

Hi and thanks or reporting this. My guess is that you are running into a known issue where the javascript is attempting to load other scrits from a path relative to itself. This often breaks under RequestReduce because the scripts are transformed and moved to a different directory which is ~/RequestReduceContent by default. I'd bet that the Commands scripts that you are ignoring may be loading other scripts and expecting those scripts toi be in the same directory.

Let me know if this does not sound right.

mwrock avatar Jun 26 '12 14:06 mwrock

The Command scripts are not loading any other javascripts as far as I know.

I suggest that you download the ElFinder package, run it through RequestReduce to reproduce the error.

This issue should not be closed.

ngjermundshaug avatar Jun 27 '12 10:06 ngjermundshaug

That's fair. Reopening.

mwrock avatar Jun 27 '12 15:06 mwrock