Skip to content

Commit 0f8f863

Browse files
committed
fixed: bug when using selectors like #one:two, improved replace for specific selector chars, see fnagel#230, thx to @sirsimo
1 parent e4736f4 commit 0f8f863

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.selectmenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ $.widget("ui.selectmenu", {
3636
var self = this, o = this.options;
3737

3838
// set a default id value, generate a new random one if not set by developer
39-
var selectmenuId = (this.element.attr( 'id' ) || 'ui-selectmenu-' + Math.random().toString( 16 ).slice( 2, 10 )).replace(':', '\\:');
39+
var selectmenuId = (this.element.attr( 'id' ) || 'ui-selectmenu-' + Math.random().toString( 16 ).slice( 2, 10 )).replace(/(:|\.)/g,'')
4040

4141
// quick array of button and menu id's
4242
this.ids = [ selectmenuId, selectmenuId + '-button', selectmenuId + '-menu' ];

0 commit comments

Comments
 (0)