Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes #3975 - Enhanced button elements should allow for phrasing cont…

…ent.
  • Loading branch information...
commit c46a25e911c48995923f026b5a49e8fff3d2f8ca 1 parent e695b48
@Wilto Wilto authored
View
1  docs/_assets/css/jqm-docs.css
@@ -70,7 +70,6 @@ p.intro {
background: none;
margin: 1.5em 0;
padding: 1.5em 15px 0;
-
}
p.intro strong {
color: #558e08;
View
4 js/jquery.mobile.forms.button.js
@@ -55,7 +55,7 @@ $.widget( "mobile.button", $.mobile.widget, {
// Add ARIA role
this.button = $( "<div></div>" )
- .text( $el.text() || $el.val() )
+ .html( $el.html() || $el.val() )
.insertBefore( $el )
.buttonMarkup({
theme: o.theme,
@@ -132,7 +132,7 @@ $.widget( "mobile.button", $.mobile.widget, {
}
// Grab the button's text element from its implementation-independent data item
- $( this.button.data( 'buttonElements' ).text ).text( $el.text() || $el.val() );
+ $( this.button.data( 'buttonElements' ).text ).html( $el.html() || $el.val() );
}
});

0 comments on commit c46a25e

Please sign in to comment.
Something went wrong with that request. Please try again.