From 2dbe562bdc98190dad2302efce54ef4278c8cb7b Mon Sep 17 00:00:00 2001 From: 0ip Date: Tue, 6 Dec 2011 18:18:38 +0100 Subject: [PATCH] Fix for 'Fix IE8 userpicker color issue' :) --- static/js/pad_userlist.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/static/js/pad_userlist.js b/static/js/pad_userlist.js index 9bb5f95db..e11cd3acb 100644 --- a/static/js/pad_userlist.js +++ b/static/js/pad_userlist.js @@ -711,7 +711,14 @@ var paduserlist = (function() } $("#myswatch").css({'background-color': myUserInfo.colorId}); - $("#usericon").css({'box-shadow': 'inset 0 0 30px ' + myUserInfo.colorId,'background-color': myUserInfo.colorId}); + + if ($.browser.msie && parseInt($.browser.version) <= 8) { + $("#usericon").css({'box-shadow': 'inset 0 0 30px ' + myUserInfo.colorId,'background-color': myUserInfo.colorId}); + } + else + { + $("#usericon").css({'box-shadow': 'inset 0 0 30px ' + myUserInfo.colorId}); + } } }; return self;