diff options
author | Felix Nagel <info@felixnagel.com> | 2012-12-03 23:07:30 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2012-12-03 23:07:30 +0100 |
commit | 60e3302d96f4b6277ccfdb828f82844fce159e75 (patch) | |
tree | 6f98e3510724906db325086d86a16be1cb49cb8e /ui/jquery.ui.selectmenu.js | |
parent | cba09dafa7b2df56730851aeaf8e79ae50355e40 (diff) | |
download | jquery-ui-60e3302d96f4b6277ccfdb828f82844fce159e75.tar.gz jquery-ui-60e3302d96f4b6277ccfdb828f82844fce159e75.zip |
Selectmenu: use text() instead of html() as the option and optgroup is read as text
Diffstat (limited to 'ui/jquery.ui.selectmenu.js')
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index a0391268e..d97b52387 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -260,7 +260,7 @@ $.widget( "ui.selectmenu", { if ( item.optgroup !== currentOptgroup ) { $( "<li />", { "class": "ui-selectmenu-optgroup" + ( item.element.parent( "optgroup" ).attr( "disabled" ) ? " ui-state-disabled" : "" ), - html: item.optgroup + text: item.optgroup }).appendTo( ul ); currentOptgroup = item.optgroup; } @@ -274,7 +274,7 @@ $.widget( "ui.selectmenu", { li.addClass( "ui-state-disabled" ); } li.append( $( "<a />", { - html: item.label, + text: item.label, href: "#" }) ); |