Spinner: Remove ui-state- classes from spinner, along with the background:none TR override. Fixes #8654 - Spinner background-color

This commit is contained in:
Jörn Zaefferer 2012-10-12 10:36:56 +02:00
parent 025266e002
commit 112185ec8d
2 changed files with 1 additions and 5 deletions

View File

@ -17,7 +17,6 @@
.ui-spinner-down { bottom: 0; } .ui-spinner-down { bottom: 0; }
/* TR overrides */ /* TR overrides */
span.ui-spinner { background: none; }
.ui-spinner .ui-icon-triangle-1-s { .ui-spinner .ui-icon-triangle-1-s {
/* need to fix icons sprite */ /* need to fix icons sprite */
background-position:-65px -16px; background-position:-65px -16px;

View File

@ -94,7 +94,6 @@ $.widget( "ui.spinner", {
}, },
keyup: "_stop", keyup: "_stop",
focus: function() { focus: function() {
this.uiSpinner.addClass( "ui-state-active" );
this.previous = this.element.val(); this.previous = this.element.val();
}, },
blur: function( event ) { blur: function( event ) {
@ -104,7 +103,6 @@ $.widget( "ui.spinner", {
} }
this._refresh(); this._refresh();
this.uiSpinner.removeClass( "ui-state-active" );
if ( this.previous !== this.element.val() ) { if ( this.previous !== this.element.val() ) {
this._trigger( "change", event ); this._trigger( "change", event );
} }
@ -196,7 +194,6 @@ $.widget( "ui.spinner", {
.parent() .parent()
// add buttons // add buttons
.append( this._buttonHtml() ); .append( this._buttonHtml() );
this._hoverable( uiSpinner );
this.element.attr( "role", "spinbutton" ); this.element.attr( "role", "spinbutton" );
@ -242,7 +239,7 @@ $.widget( "ui.spinner", {
}, },
_uiSpinnerHtml: function() { _uiSpinnerHtml: function() {
return "<span class='ui-spinner ui-state-default ui-widget ui-widget-content ui-corner-all'></span>"; return "<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>";
}, },
_buttonHtml: function() { _buttonHtml: function() {