Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update ui/jquery.ui.button.js

Button: Changed variable text to showLabel  Fixed: #8203 – button: 'text' is a confusing name for the option
  • Loading branch information...
commit 19164a5b1e32e3595ef986e0d09f181d68b7f3ee 1 parent 536d112
Bernhard Sirlinger authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 ui/jquery.ui.button.js
View
8 ui/jquery.ui.button.js
@@ -46,7 +46,7 @@ $.widget( "ui.button", {
defaultElement: "<button>",
options: {
disabled: null,
- text: true,
+ showLabel: true,
label: null,
icons: {
primary: null,
@@ -329,7 +329,7 @@ $.widget( "ui.button", {
buttonClasses = [];
if ( icons.primary || icons.secondary ) {
- if ( this.options.text ) {
+ if ( this.options.showLabel ) {
buttonClasses.push( "ui-button-text-icon" + ( multipleIcons ? "s" : ( icons.primary ? "-primary" : "-secondary" ) ) );
}
@@ -341,7 +341,7 @@ $.widget( "ui.button", {
buttonElement.append( "<span class='ui-button-icon-secondary ui-icon " + icons.secondary + "'></span>" );
}
- if ( !this.options.text ) {
+ if ( !this.options.showLabel ) {
buttonClasses.push( multipleIcons ? "ui-button-icons-only" : "ui-button-icon-only" );
if ( !this.hasTitle ) {
@@ -412,4 +412,4 @@ $.widget( "ui.buttonset", {
}
});
-}( jQuery ) );
+}( jQuery ) );
Please sign in to comment.
Something went wrong with that request. Please try again.