Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Excluded button element from buttonMarkup auto initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspermdegroot committed May 4, 2012
1 parent 522018b commit 315a060
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions js/jquery.mobile.buttonMarkup.js
Expand Up @@ -80,11 +80,10 @@ $.fn.buttonMarkup = function( options ) {
}

if ( o.inline !== undefined ) {
// Used to control styling in headers/footers, where buttons default to `mini` style.
buttonClass += o.inline === false ? " ui-btn-block" : " ui-btn-inline";
// Used to control styling in headers/footers, where buttons default to `inline` style.
buttonClass += o.inline ? " ui-btn-inline" : " ui-btn-block";
}


if ( o.icon ) {
o.icon = "ui-icon-" + o.icon;
o.iconpos = o.iconpos || "left";
Expand Down Expand Up @@ -241,7 +240,7 @@ var attachEvents = function() {
$( document ).bind( "pagecreate create", function( e ){

$( ":jqmData(role='button'), .ui-bar > a, .ui-header > a, .ui-footer > a, .ui-bar > :jqmData(role='controlgroup') > a", e.target )
.not( ".ui-btn, :jqmData(role='none'), :jqmData(role='nojs')" )
.not( "button, .ui-btn, :jqmData(role='none'), :jqmData(role='nojs')" )
.buttonMarkup();
});

Expand Down

0 comments on commit 315a060

Please sign in to comment.