Page 2 of 2

Re: Deluge develop 972648 Web UI issue

Posted: Fri Aug 07, 2015 11:45 am
by Cas
Thanks for tracking that down, I thought I had accounted for that in the new script but maybe forgot... some sorting into alphabetically order should fix it:

Code: Select all

for root, dirnames, filenames in os.walk(SOURCE_DIR):
+    dirnames.sort()
+    filenames.sort()
     for filename in fnmatch.filter(filenames, '*.js'):

Re: Deluge develop 972648 Web UI issue

Posted: Fri Aug 07, 2015 12:05 pm
by alllexx
Unfortunately, simply sorting sources alphabetically doesn't work. I get this error after using modified script:

Code: Select all

Uncaught TypeError: Cannot read property 'prototype' of undefined @ ext-base.js:7
The order in which '?dev=true' index includes '.js' files isn't alphabetical. I don't know how exactly it is generated, but after concatenating in the exactly the same order and compressing (see my previous post), web ui works fine. While adding sorting lines in the minifier script yields the error above :(

Re: Deluge develop 972648 Web UI issue

Posted: Fri Aug 07, 2015 12:27 pm
by Cas
Ok I'll look into it properly later :D

Re: Deluge develop 972648 Web UI issue

Posted: Fri Aug 07, 2015 12:29 pm
by alllexx
OK, take your time, thanks :)

Re: Deluge develop 972648 Web UI issue

Posted: Thu Aug 13, 2015 11:31 pm
by Cas

Re: Deluge develop 972648 Web UI issue

Posted: Fri Aug 14, 2015 10:00 am
by alllexx
Great, thanks! I'll try this when I get home (after August 22nd)

Re: Deluge develop 972648 Web UI issue

Posted: Sun Aug 23, 2015 7:23 am
by alllexx
Tested it and it works fine! Thanks! :)