aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorTJ VanToll <tj.vantoll@gmail.com>2012-05-21 21:52:48 -0400
committerScott González <scott.gonzalez@gmail.com>2012-05-22 08:43:21 -0400
commit1f1613852cb6116cd71a6600d737099fc2d55d2a (patch)
treea812bce2c5797fc872cf667520e3ce1bcd6dc7f1 /ui
parent286941ef8d325d6c0621eb29714792743871b1a3 (diff)
downloadjquery-ui-1f1613852cb6116cd71a6600d737099fc2d55d2a.tar.gz
jquery-ui-1f1613852cb6116cd71a6600d737099fc2d55d2a.zip
Button: Corrected default label applied to submit buttons. Fixed #8337: Submit inputs don't automatically set label option.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.button.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js
index 772ad4d6f..810191775 100644
--- a/ui/jquery.ui.button.js
+++ b/ui/jquery.ui.button.js
@@ -73,7 +73,7 @@ $.widget( "ui.button", {
focusClass = "ui-state-focus";
if ( options.label === null ) {
- options.label = this.buttonElement.html();
+ options.label = (this.type === "input" ? this.buttonElement.val() : this.buttonElement.html());
}
this.buttonElement