mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-16 12:21:12 +00:00
added theming for headers and footers to switch statement
This commit is contained in:
parent
8a013023eb
commit
3f2c23b66d
1 changed files with 3 additions and 2 deletions
|
|
@ -271,10 +271,11 @@
|
|||
var $this = $(this),
|
||||
role = $this.attr("data-role");
|
||||
switch(role) {
|
||||
case 'page':
|
||||
case 'header':
|
||||
case 'content':
|
||||
case 'footer':
|
||||
$this.addClass('ui-bar-' + ($(this).data('theme') ? $(this).data('theme') : 'a'));
|
||||
case 'page':
|
||||
case 'content':
|
||||
$this.addClass('ui-' + role);
|
||||
break;
|
||||
case 'collapsible':
|
||||
|
|
|
|||
Loading…
Reference in a new issue