work against profiler

- implemented some session-token to limit access to profile data
 - researched structure to send onDemand data (still some minor bugs to iron out)
 - rewrote spells' access to model data and killed a redundant instance of ItemList
This commit is contained in:
Sarjuuk
2014-03-25 21:52:19 +01:00
parent 05f8be3c79
commit 41180e514c
18 changed files with 281 additions and 69 deletions

View File

@@ -4614,7 +4614,8 @@ function ProfilerInventory(_parent) {
style: 'outline: none'
};
swfobject.embedSWF(g_staticUrl + '/modelviewer/ZAMviewerfp11.swf', _swfModel.id, '100%', '100%', '10.0.0', g_staticUrl + '/modelviewer/expressInstall.swf', flashVars, params, attributes);
// swfobject.embedSWF(g_staticUrl + '/modelviewer/ZAMviewerfp11.swf', _swfModel.id, '100%', '100%', '10.0.0', g_staticUrl + '/modelviewer/expressInstall.swf', flashVars, params, attributes);
swfobject.embedSWF('http://static.wowhead.com/modelviewer/ZAMviewerfp11.swf', _swfModel.id, '100%', '100%', '10.0.0', 'http://static.wowhead.com/modelviewer/expressInstall.swf', flashVars, params, attributes);
_mvInited = true;
}
@@ -7389,6 +7390,9 @@ function ProfilerCompletion(_parent) {
return _timer[wut] = setTimeout(_self.filterData.bind(_self, wut, value), 750);
}
if (!_divTotals) // sarjuuk: prevent error on matching available data against empty known data
return;
var _ = 0;
if (wut === 0) { // Simulate category click

View File

@@ -2243,7 +2243,7 @@ function TalentCalc() {
c.div.style.display = "";
}
else {
$WH.g_ajaxIshRequest("?data=talents&class=" + classId + "&" + _versionBuild);
$WH.g_ajaxIshRequest('?data=talents&class=' + classId + '&locale=' + g_locale.id + '&t=' + g_dataKey + '&' + _versionBuild);
}
}

View File

@@ -16492,8 +16492,8 @@ var ModelViewer = new function() {
flashVars.equipList = equipList.join(',');
}
// swfobject.embedSWF(http://static.wowhead.com/modelviewer/ZAMviewerfp11.swf', 'modelviewer-generic', '600', '400', "11.0.0", http://static.wowhead.com/modelviewer/expressInstall.swf', flashVars, params, attributes);
swfobject.embedSWF(g_staticUrl + '/modelviewer/ZAMviewerfp11.swf', 'modelviewer-generic', '600', '400', "11.0.0", g_staticUrl + '/modelviewer/expressInstall.swf', flashVars, params, attributes);
swfobject.embedSWF('http://static.wowhead.com/modelviewer/ZAMviewerfp11.swf', 'modelviewer-generic', '600', '400', "11.0.0", 'http://static.wowhead.com/modelviewer/expressInstall.swf', flashVars, params, attributes);
// swfobject.embedSWF(g_staticUrl + '/modelviewer/ZAMviewerfp11.swf', 'modelviewer-generic', '600', '400', "11.0.0", g_staticUrl + '/modelviewer/expressInstall.swf', flashVars, params, attributes);
_w.style.display = '';
}
var