sl.Home | sl.Search | sl.Forum | sl.Settings | sl.Serverlist | sl.Maplist | sl.Team | sl.Wiki |
Fix for sl_sm_scroll |
Nov 15 2009, 09:13 PM
Post
#1
|
|
Sergeant Group: Members Joined: 6-August 06 Member No.: 31293 |
Hi,
im getting error in firebug/firefox while opening players' list. Its tellling me obj.style.setAttribute is not a function. I think this line: CODE obj.style.setAttribute("height", obj.tag+"px", false); should look like: CODE obj.style.setAttribute("height", obj.tag+"px"); Better version: CODE var styleattribute = obj.getAttribute('style'); if (typeof styleattribute == 'string') { // what Firefox returns obj.style.setAttribute("height", obj.tag+"px"); } else if (typeof styleattribute == 'object') { // what IE returns obj.style.height = obj.tag+"px"; } cheers -------------------- |
|
|
Nov 18 2009, 05:29 PM
Post
#2
|
|
General of the Army Group: Management Joined: 2-January 06 From: Europe Member No.: 20317 |
Thank you for your feedback. The coding team is currently reworking some parts of the backend code. They might consider your fix later on.
-------------------- |
|
|
Lo-Fi Version | Time is now: 27th April 2024 - 02:02 PM |