implemented 'serverside cookies'

minor:
 - icons in summary-dropdown menu
 - improved handling of non-standard specs for weight-presets (mostly due
   to Profiler)
 - probably some things i forgott... :x
This commit is contained in:
Sarjuuk
2014-03-14 16:00:40 +01:00
parent e1ed96ec73
commit 63895e838b
10 changed files with 912 additions and 721 deletions

View File

@@ -342,7 +342,7 @@ $WH.array_unique = function(a) {
// Get element
$WH.ge = function(z) {
if(typeof z != 'string') {
if (typeof z != 'string') {
return z;
}
@@ -545,7 +545,7 @@ $WH.gc = function(z) {
// Prevent element from being selected/dragged (IE only)
$WH.ns = function(a) {
if ($WH.Browser.ie6789) {
a.onfocus = tb;
a.onfocus = $WH.tb;
a.onmousedown = a.onselectstart = a.ondragstart = $WH.rf;
}
}
@@ -1206,7 +1206,7 @@ $WH.g_convertScalingFactor = function(level, factor, dist, stat, json) {
var scalingValues = $WH.g_convertScalingFactor.SV;
var scalingDistributions = $WH.g_convertScalingFactor.SD;
if(!scalingValues[level]) {
if (!scalingValues[level]) {
if (g_user.roles & U_GROUP_ADMIN) {
alert('There are no item scaling values for level ' + level);
}
@@ -1765,7 +1765,7 @@ $WH.Tooltip = {
c[0].style.whiteSpace = 'nowrap';
var m = parseInt(tooltip.style.width);
if(!tooltip.slider || !m) {
if (!tooltip.slider || !m) {
if (c[1].offsetWidth > 300) {
m = Math.max(300, c[0].offsetWidth) + 20;
}
@@ -1780,7 +1780,7 @@ $WH.Tooltip = {
tooltip.style.width = m + 'px';
c[0].style.width = c[1].style.width = '100%';
if(tooltip.slider) {
if (tooltip.slider) {
Slider.setSize(tooltip.slider, m - 6);
tooltip.className += ' tooltip-slider';
}