]> source.dussan.org Git - jquery-ui.git/commitdiff
Autocomplete demo: Use custom namespace for combobox.
authorScott González <scott.gonzalez@gmail.com>
Fri, 12 Apr 2013 00:54:36 +0000 (20:54 -0400)
committerScott González <scott.gonzalez@gmail.com>
Fri, 12 Apr 2013 00:54:49 +0000 (20:54 -0400)
demos/autocomplete/combobox.html

index 22f34aa17b2a48a70e9d2a0da024e4725f087a5e..2b5e511be324e6e14c1c4cba6c8845cbc9b6659c 100644 (file)
        <script src="../../ui/jquery.ui.tooltip.js"></script>
        <link rel="stylesheet" href="../demos.css">
        <style>
-       .ui-combobox {
+       .custom-combobox {
                position: relative;
                display: inline-block;
        }
-       .ui-combobox-toggle {
+       .custom-combobox-toggle {
                position: absolute;
                top: 0;
                bottom: 0;
                *height: 1.7em;
                *top: 0.1em;
        }
-       .ui-combobox-input {
+       .custom-combobox-input {
                margin: 0;
                padding: 0.3em;
        }
        </style>
        <script>
        (function( $ ) {
-               $.widget( "ui.combobox", {
+               $.widget( "custom.combobox", {
                        _create: function() {
                                this.wrapper = $( "<span>" )
-                                       .addClass( "ui-combobox" )
+                                       .addClass( "custom-combobox" )
                                        .insertAfter( this.element );
 
                                this.element.hide();
@@ -54,7 +54,7 @@
                                        .appendTo( this.wrapper )
                                        .val( value )
                                        .attr( "title", "" )
-                                       .addClass( "ui-state-default ui-combobox-input ui-widget ui-widget-content ui-corner-left" )
+                                       .addClass( "custom-combobox-input ui-widget ui-widget-content ui-state-default ui-corner-left" )
                                        .autocomplete({
                                                delay: 0,
                                                minLength: 0,
@@ -92,7 +92,7 @@
                                                text: false
                                        })
                                        .removeClass( "ui-corner-all" )
-                                       .addClass( "ui-corner-right ui-combobox-toggle" )
+                                       .addClass( "custom-combobox-toggle ui-corner-right" )
                                        .mousedown(function() {
                                                wasOpen = input.autocomplete( "widget" ).is( ":visible" );
                                        })