diff --git a/source/Ox.UI/Ox.UI.js b/source/Ox.UI/Ox.UI.js index 7612b4ed..62eabbd4 100644 --- a/source/Ox.UI/Ox.UI.js +++ b/source/Ox.UI/Ox.UI.js @@ -230,7 +230,7 @@ Ox.load.UI = function(options, callback) { function loadFiles() { - Ox.getFile(Ox.PATH + '/Ox.UI/jquery/jquery.js', function() { + Ox.getFile(Ox.PATH + '/Ox.UI/jquery/jquery.js?' + Ox.VERSION, function() { initUI(); Ox.getJSON(Ox.UI.PATH + 'json/Ox.UI.json?' + Ox.VERSION, function(data) { var counter = 0, length = data.files.length; @@ -243,7 +243,7 @@ Ox.load.UI = function(options, callback) { ++counter == length && initThemes(); }); } else { - Ox.getFile(Ox.PATH + file, function() { + Ox.getFile(Ox.PATH + file + '?' + Ox.VERSION, function() { ++counter == length && initThemes(); }); } diff --git a/source/Ox/js/Core.js b/source/Ox/js/Core.js index 8e3a4acb..1ebc16c2 100644 --- a/source/Ox/js/Core.js +++ b/source/Ox/js/Core.js @@ -78,7 +78,7 @@ Ox.load = function() { } else { Ox.forEach(modules, function(options, module) { Ox.getFile( - Ox.PATH + 'Ox.' + module + '/Ox.' + module + '.js', + Ox.PATH + 'Ox.' + module + '/Ox.' + module + '.js?' + Ox.VERSION, function() { Ox.load[module](options, function(success) { succeeded += success; diff --git a/source/Ox/js/Request.js b/source/Ox/js/Request.js index 2f2c3978..ad4fb76b 100644 --- a/source/Ox/js/Request.js +++ b/source/Ox/js/Request.js @@ -96,7 +96,8 @@ Ox.getAsync = function(urls, get, callback) { var element, tagValue, typeValue, urlKey; if (!cache[url]) { if (!type) { - type = url.split('.').pop(); + type = Ox.parseURL(url).pathname.split('.').pop(); + console.log(type, url); type = type == 'css' ? 'stylesheet' : type == 'js' ? 'script' : 'image'; }