mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-28 15:38:17 +00:00
if a button's iconpos is "notext" and it has no title attr, set its title attr to its text content
This commit is contained in:
parent
5c3d35574f
commit
4db915a3c3
1 changed files with 5 additions and 0 deletions
|
|
@ -44,6 +44,11 @@ $.fn.buttonMarkup = function( options ){
|
|||
|
||||
if (o.iconpos){
|
||||
buttonClass += " ui-btn-icon-" + o.iconpos;
|
||||
|
||||
if( o.iconpos == 'notext' && !el.attr('title') ){
|
||||
el.attr('title', el.text() );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue