diff options
author | Felix Nagel <info@felixnagel.com> | 2011-10-10 22:52:37 +0200 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2011-10-10 22:52:37 +0200 |
commit | 0703a99915af56550f9b0d56b9c77644e7aa30b8 (patch) | |
tree | 999a21cf1a727cf26a833bc5305509cae01b55de | |
parent | 33cb24114962354abb606c2689ba8ed702b9ad55 (diff) | |
download | jquery-ui-0703a99915af56550f9b0d56b9c77644e7aa30b8.tar.gz jquery-ui-0703a99915af56550f9b0d56b9c77644e7aa30b8.zip |
fixed: problem with unusual chars in selector, thx to @dominicgamble
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 585aab3ad..ba1f140cf 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -38,7 +38,7 @@ $.widget("ui.selectmenu", { var self = this, o = this.options; // set a default id value, generate a new random one if not set by developer - var selectmenuId = this.element.attr( 'id' ) || 'ui-selectmenu-' + Math.random().toString( 16 ).slice( 2, 10 ); + var selectmenuId = this.element.attr( 'id' ).replace(/(:|\.)/g,'\\$1') || 'ui-selectmenu-' + Math.random().toString( 16 ).slice( 2, 10 ); // quick array of button and menu id's this.ids = [ selectmenuId + '-button', selectmenuId + '-menu' ]; |