diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2015-10-06 17:01:23 +0200 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-10-08 14:03:00 -0400 |
commit | 52d9ec6c4d7402d5ef04b8c7959f812f8d095cef (patch) | |
tree | 3a628ce852b56c3371ecdf94fa81b20c03cb4dde /ui/widgets/checkboxradio.js | |
parent | 9ff3d8fb90b53731401744a9f077c78b27aef1e4 (diff) | |
download | jquery-ui-52d9ec6c4d7402d5ef04b8c7959f812f8d095cef.tar.gz jquery-ui-52d9ec6c4d7402d5ef04b8c7959f812f8d095cef.zip |
Checkboxradio: Add ui-state-highlight class to icon on create
This was already toggled in _toggleClasses, but that isn't called
on create.
Diffstat (limited to 'ui/widgets/checkboxradio.js')
-rw-r--r-- | ui/widgets/checkboxradio.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/widgets/checkboxradio.js b/ui/widgets/checkboxradio.js index 6bdd858db..769ab146f 100644 --- a/ui/widgets/checkboxradio.js +++ b/ui/widgets/checkboxradio.js @@ -226,14 +226,14 @@ $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, { } if ( this.type === "checkbox" ) { - toAdd += checked ? "ui-icon-check" : "ui-icon-blank"; + toAdd += checked ? "ui-icon-check ui-state-highlight" : "ui-icon-blank"; this._removeClass( this.icon, null, checked ? "ui-icon-blank" : "ui-icon-check" ); } else { toAdd += "ui-icon-blank"; } this._addClass( this.icon, "ui-checkboxradio-icon", toAdd ); if ( !checked ) { - this._removeClass( this.icon, null, "ui-icon-check" ); + this._removeClass( this.icon, null, "ui-icon-check ui-state-highlight" ); } this.icon.prependTo( this.label ).after( this.iconSpace ); } else if ( this.icon !== undefined ) { |