[Phpfreechat-svn] SF.net SVN: phpfreechat: [678] trunk/src/client
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-08-18 15:03:34
|
Revision: 678 Author: kerphi Date: 2006-08-18 08:03:13 -0700 (Fri, 18 Aug 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=678&view=rev Log Message: ----------- Bug fix: the nickname box position was broken on IE6, I replaced it by a <p> with appropriate css rules. Modified Paths: -------------- trunk/src/client/pfcclient.js trunk/src/client/pfcgui.js trunk/themes/default/style.css Modified: trunk/src/client/pfcclient.js =================================================================== --- trunk/src/client/pfcclient.js 2006-08-17 21:10:14 UTC (rev 677) +++ trunk/src/client/pfcclient.js 2006-08-18 15:03:13 UTC (rev 678) @@ -301,7 +301,7 @@ if (resp == "ok" || resp == "notchanged" || resp == "changed" || resp == "connected") { - this.el_handle.value = param; + this.el_handle.innerHTML = param; this.nickname = param; } else if (resp == "isused") Modified: trunk/src/client/pfcgui.js =================================================================== --- trunk/src/client/pfcgui.js 2006-08-17 21:10:14 UTC (rev 677) +++ trunk/src/client/pfcgui.js 2006-08-18 15:03:13 UTC (rev 678) @@ -381,11 +381,10 @@ cmdcontainer.appendChild(logo); // handle box : <input id="pfc_handle" type="button" ... - var handle = document.createElement('input'); + var handle = document.createElement('p'); handle.setAttribute('id', 'pfc_handle'); - handle.setAttribute('type', 'button'); handle.setAttribute('title', pfc.res.getLabel("Enter your nickname here")); - handle.setAttribute('value', pfc.nickname); + handle.appendChild(document.createTextNode(pfc.nickname)); handle.onclick = function(){ pfc.askNick(''); } cmdcontainer.appendChild(handle); Modified: trunk/themes/default/style.css =================================================================== --- trunk/themes/default/style.css 2006-08-17 21:10:14 UTC (rev 677) +++ trunk/themes/default/style.css 2006-08-18 15:03:13 UTC (rev 678) @@ -172,15 +172,24 @@ div#pfc_cmd_container { position: relative; margin-top: 5px; + margin-bottom: 5px; width: 100%; } +div#pfc_cmd_container * { + margin-right: 2px; +} -input#pfc_handle { - border: black solid 1px; - padding: 0 4px 0 4px; +p#pfc_handle { + display: inline; + cursor: pointer; + border: 1px solid #555; + padding: 2px 10px 2px 10px; color: black; - text-align: center; margin-bottom: 5px; + font-weight: bold; + background-color: #EEE; + font-size: 70%; /* these two line fix a display problem in IE6 : */ + vertical-align: middle; /* the nickname box bottom border is hidden without these lines */ } a#pfc_logo { @@ -202,6 +211,10 @@ /* border: 1px solid #000;*/ } +div#pfc_bbcode_container * { + margin-right: 2px; +} + div#pfc_errors { display: none; margin-top: 5px; @@ -255,6 +268,9 @@ padding: 4px; margin-top: 4px; } +div#pfc_smileys * { + margin-right: 2px; +} div#pfc_smileys img { cursor: pointer; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |