diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2015-01-07 21:51:38 -0500 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-10-08 14:02:35 -0400 |
commit | 16abde399daa07e11f3b972ab675d59374cf08be (patch) | |
tree | df9f2ef654f5357ad1e7e1eac3ad6f79194b33f1 /ui/widgets/spinner.js | |
parent | 9f7f0a427966741a460e91336947698879f8ad77 (diff) | |
download | jquery-ui-16abde399daa07e11f3b972ab675d59374cf08be.tar.gz jquery-ui-16abde399daa07e11f3b972ab675d59374cf08be.zip |
Spinner: Updates for new button widget and classes option
Diffstat (limited to 'ui/widgets/spinner.js')
-rw-r--r-- | ui/widgets/spinner.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ui/widgets/spinner.js b/ui/widgets/spinner.js index f79b2baed..3a0b6deef 100644 --- a/ui/widgets/spinner.js +++ b/ui/widgets/spinner.js @@ -250,17 +250,19 @@ $.widget( "ui.spinner", { // Button bindings this.buttons = this.uiSpinner.children( "a" ) .attr( "tabIndex", -1 ) - .button(); + .button( { + classes: { + "ui-button": "" + } + } ); // TODO: Right now button does not support classes this is already updated in button PR this._removeClass( this.buttons, "ui-corner-all" ); this._addClass( this.buttons.first(), "ui-spinner-button ui-spinner-up" ); this._addClass( this.buttons.last(), "ui-spinner-button ui-spinner-down" ); - this._addClass( this.buttons.first().find( ".ui-button-text span" ), null, - "ui-icon " + this.options.icons.up ); - this._addClass( this.buttons.last().find( ".ui-button-text span" ), null, - "ui-icon " + this.options.icons.down ); + this.buttons.first().button( "option", "icon", this.options.icons.up ); + this.buttons.last().button( "option", "icon", this.options.icons.down ); // IE 6 doesn't understand height: 50% for the buttons // unless the wrapper has an explicit height |