load theme json with Ox.VERSION too

This commit is contained in:
j 2012-06-12 21:20:31 +02:00
parent 4e119b98f1
commit 2e49324ede

View file

@ -214,7 +214,7 @@ Ox.load.UI = function(options, callback) {
var dfd = new $.Deferred();
promises.push(dfd.promise());
if (/\.json$/.test(file)) {
Ox.getJSON(Ox.PATH + file, function(data) {
Ox.getJSON(Ox.PATH + file + '?' + Ox.VERSION, function(data) {
var theme = /\/(\w+)\.json$/.exec(file)[1];
themes[theme] = data;
dfd.resolve();