You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2009/08/05 16:08:30 UTC
svn commit: r801236 -
/myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tree.js
Author: weber
Date: Wed Aug 5 14:08:29 2009
New Revision: 801236
URL: http://svn.apache.org/viewvc?rev=801236&view=rev
Log:
(TOBAGO-776) special character like German 'Umlaut' in Option are broken
<https://issues.apache.org/jira/browse/TOBAGO-776>
Modified:
myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tree.js
Modified: myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tree.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tree.js?rev=801236&r1=801235&r2=801236&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tree.js (original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tree.js Wed Aug 5 14:08:29 2009
@@ -856,8 +856,11 @@
if (node.childNodes && node.childNodes.length) {
label += " \u2192";
}
- var option = new Option("", index);
- option.innerHTML = label;
+ // option.innerHTML did not work in IE: http://support.microsoft.com/?scid=kb%3Ben-us%3B276228&x=11&y=15
+ var span = document.createElement("span");
+ span.innerHTML = "<select><option>" + label + "</option></select>";
+ label = span.firstChild.firstChild.text;
+ var option = new Option(label, index);
option.hiddenId = hiddenId;
if (node.tip) {
option.title = node.tip;