fix not working minified css, caused by it not being recogniced as loaded and loaded again out of order

This commit is contained in:
Ralf Becker 2016-03-03 09:23:45 +00:00
parent 3377ef0483
commit b0f061ac5e
3 changed files with 7 additions and 6 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -28,19 +28,20 @@ egw.extend('files', egw.MODULE_WND_LOCAL, function(_app, _wnd)
var egw = this; var egw = this;
/** /**
* Remove optional timestamp attached directly as first query parameter, eg. /path/name.js?12345678[&other=val] * Remove optional timestamp attached as query parameter, eg. /path/name.js?12345678[&other=val]
* *
* Examples: * Examples:
* /path/file.js --> /path/file.js * /path/file.js --> /path/file.js
* /path/file.js?123456 --> /path/file.js * /path/file.js?123456 --> /path/file.js
* /path/file.php?123456&param=value --> /path/file.php?param=value * /path/file.php?123456&param=value --> /path/file.php?param=value
* /path/file.php?param=value&123456 --> /path/file.php?param=value
* *
* @param _src url * @param _src url
* @return url with timestamp stripped off * @return url with timestamp stripped off
*/ */
function removeTS(_src) function removeTS(_src)
{ {
return _src.replace(/\?[0-9]+&?/, '?').replace(/\?$/, ''); return _src.replace(/[?&][0-9]+&?/, '?').replace(/\?$/, '');
} }
/** /**
@ -78,7 +79,7 @@ egw.extend('files', egw.MODULE_WND_LOCAL, function(_app, _wnd)
if (contains && contains.length > 1) if (contains && contains.length > 1)
{ {
var bundle = contains[1].split(','); var bundle = contains[1].split(',');
for(var i; i < bundle.length; ++i) for(var i=0; i < bundle.length; ++i)
{ {
files.push(bundle[i].replace(min_js_regexp, '.js')); files.push(bundle[i].replace(min_js_regexp, '.js'));
} }