Skip to content

Commit 445ffd0

Browse files
committed
Autocomplete demo: Use custom namespace for combobox.
1 parent 530d1b7 commit 445ffd0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

demos/autocomplete/combobox.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
<script src="../../ui/jquery.ui.tooltip.js"></script>
1515
<link rel="stylesheet" href="../demos.css">
1616
<style>
17-
.ui-combobox {
17+
.custom-combobox {
1818
position: relative;
1919
display: inline-block;
2020
}
21-
.ui-combobox-toggle {
21+
.custom-combobox-toggle {
2222
position: absolute;
2323
top: 0;
2424
bottom: 0;
@@ -28,17 +28,17 @@
2828
*height: 1.7em;
2929
*top: 0.1em;
3030
}
31-
.ui-combobox-input {
31+
.custom-combobox-input {
3232
margin: 0;
3333
padding: 0.3em;
3434
}
3535
</style>
3636
<script>
3737
(function( $ ) {
38-
$.widget( "ui.combobox", {
38+
$.widget( "custom.combobox", {
3939
_create: function() {
4040
this.wrapper = $( "<span>" )
41-
.addClass( "ui-combobox" )
41+
.addClass( "custom-combobox" )
4242
.insertAfter( this.element );
4343

4444
this.element.hide();
@@ -54,7 +54,7 @@
5454
.appendTo( this.wrapper )
5555
.val( value )
5656
.attr( "title", "" )
57-
.addClass( "ui-state-default ui-combobox-input ui-widget ui-widget-content ui-corner-left" )
57+
.addClass( "custom-combobox-input ui-widget ui-widget-content ui-state-default ui-corner-left" )
5858
.autocomplete({
5959
delay: 0,
6060
minLength: 0,
@@ -92,7 +92,7 @@
9292
text: false
9393
})
9494
.removeClass( "ui-corner-all" )
95-
.addClass( "ui-corner-right ui-combobox-toggle" )
95+
.addClass( "custom-combobox-toggle ui-corner-right" )
9696
.mousedown(function() {
9797
wasOpen = input.autocomplete( "widget" ).is( ":visible" );
9898
})

0 commit comments

Comments
 (0)