append version, not random
This commit is contained in:
parent
2cbcb9d086
commit
db0a2394d9
2 changed files with 7 additions and 3 deletions
|
@ -207,7 +207,7 @@ Ox.load.UI = function(options, callback) {
|
|||
|
||||
Ox.loadFile(Ox.PATH + '/Ox.UI/jquery/jquery.js', function() {
|
||||
initUI();
|
||||
Ox.getJSON(Ox.UI.PATH + 'json/Ox.UI.files.json?' + Ox.random(1000000), function(files) {
|
||||
Ox.getJSON(Ox.UI.PATH + 'json/Ox.UI.files.json?' + Ox.VERSION, function(files) {
|
||||
var promises = [], themes = {};
|
||||
files.forEach(function(file) {
|
||||
var dfd = new $.Deferred();
|
||||
|
@ -228,7 +228,7 @@ Ox.load.UI = function(options, callback) {
|
|||
promises.push(dfd.promise());
|
||||
Ox.getJSON(Ox.UI.PATH + 'json/Ox.UI.image' + (
|
||||
options.loadImages ? 'Data' : ''
|
||||
) + 'URLs.json?' + Ox.random(1000000), function(images) {
|
||||
) + 'URLs.json?' + Ox.VERSION, function(images) {
|
||||
imageURLs = images;
|
||||
Ox.forEach(imageURLs, function(url, key) {
|
||||
imageNames[url] = key.split('/')[1];
|
||||
|
|
|
@ -40,7 +40,11 @@ window.Ox = {
|
|||
|
||||
function loadJSON(callback) {
|
||||
var req = new XMLHttpRequest();
|
||||
req.open('GET', path + 'Ox/json/Ox.json?' + Ox.random(1000000), true);
|
||||
req.open(
|
||||
'GET',
|
||||
path + 'Ox/json/Ox.json?' + Math.floor(Math.random() * 1000000),
|
||||
true
|
||||
);
|
||||
req.onreadystatechange = function() {
|
||||
if (req.readyState == 4) {
|
||||
if (req.status == 200) {
|
||||
|
|
Loading…
Reference in a new issue