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

Commit

Permalink
Fix button themeing in headers
Browse files Browse the repository at this point in the history
  • Loading branch information
arschmitz committed May 16, 2013
1 parent ae3f4c7 commit 9560017
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/widgets/toolbar.js
Expand Up @@ -53,7 +53,7 @@ define( [ "jquery", "../jquery.mobile.widget", "../jquery.mobile.core", "../jque
}
}
if( o.backBtnTheme !== undefined){
this.element.find(".ui-toolbar-back-btn").attr( "data-"+ $.mobile.ns +"theme", o.theme).buttonMarkup();
this.element.find(".ui-toolbar-back-btn").attr( "data-"+ $.mobile.ns +"theme", o.backBtnTheme).buttonMarkup({ theme:o.backBtnTheme});
}
if( o.backBtnText !== undefined){
this.element.find(".ui-toolbar-back-btn .ui-btn-text").text( o.backBtnText );
Expand All @@ -78,7 +78,7 @@ define( [ "jquery", "../jquery.mobile.widget", "../jquery.mobile.core", "../jque
this._btnMarkup();
},
_btnMarkup: function(){
this.element.children("a").buttonMarkup({ theme:this.options.theme});
this.element.children("a").buttonMarkup();
},
_addHeaderButtonClasses:function(){
var $headeranchors = this.element.children( "a, button" );
Expand Down

0 comments on commit 9560017

Please sign in to comment.