]> source.dussan.org Git - jquery-ui.git/commitdiff
Fixed #5362 - Buttonset class should be ui-buttonset because buttonset is one word
authorRichard Worth <rdworth@gmail.com>
Wed, 17 Mar 2010 13:16:40 +0000 (13:16 +0000)
committerRichard Worth <rdworth@gmail.com>
Wed, 17 Mar 2010 13:16:40 +0000 (13:16 +0000)
tests/static/button/default.html
tests/unit/button/button_core.js
themes/base/jquery.ui.button.css
ui/jquery.ui.button.js

index aa78b34663a321638f45e4f44969fe0bb456eefa..a2c35a4ad67a16d38261c202eebf27b277b82ed3 100644 (file)
        
        <h2>Button Sets</h2>
        
-       <div class="ui-button-set">
+       <div class="ui-buttonset">
                <button class="ui-button ui-button-text-only ui-widget ui-state-default ui-corner-left"><span class="ui-button-text">Simple button</span></button>
                <button class="ui-button ui-button-text-only ui-widget ui-state-default"><span class="ui-button-text">Simple button</span></button>
                <button class="ui-button ui-button-text-only ui-widget ui-state-default ui-corner-right"><span class="ui-button-text">Simple button</span></button>
index 4569737a4f5719cf8abf1405f96078136488e76c..5b30aa860d1dfb1b8847de995480e3a9fced6a72 100644 (file)
@@ -59,7 +59,7 @@ test("input type submit, don't create child elements", function() {
 
 test("buttonset", function() {
        var set = $("#radio1").buttonset();
-       ok( set.is(".ui-button-set") );
+       ok( set.is(".ui-buttonset") );
        same( set.children(".ui-button").length, 3 );
        same( set.children("input:radio.ui-helper-hidden-accessible").length, 3 );
        ok( set.children("label:eq(0)").is(".ui-button.ui-corner-left:not(.ui-corner-all)") );
index 33e1b4b39f6264081ba1778c2fc8df5a338f808c..47777a42800529b305ccb821db25fca4b72e7baf 100644 (file)
@@ -23,8 +23,8 @@ input.ui-button { padding: .4em 1em; }
 .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
 
 /*button sets*/
-.ui-button-set { margin-right: 7px; }
-.ui-button-set .ui-button { margin-left: 0; margin-right: -.3em; }
+.ui-buttonset { margin-right: 7px; }
+.ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
 
 /* workarounds */
 button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
index be0af7ecdde4bf01d672bd4e63fdfba134aa44bb..ff2c1ebb6ab4143b0f58f28047a7b6ee357ad980 100644 (file)
@@ -311,7 +311,7 @@ $.widget( "ui.button", {
 
 $.widget( "ui.buttonset", {
        _create: function() {
-               this.element.addClass( "ui-button-set" );
+               this.element.addClass( "ui-buttonset" );
                this._init();
        },
        
@@ -349,7 +349,7 @@ $.widget( "ui.buttonset", {
        },
 
        destroy: function() {
-               this.element.removeClass( "ui-button-set" );
+               this.element.removeClass( "ui-buttonset" );
                this.buttons
                        .map(function() {
                                return $( this ).button( "widget" )[ 0 ];