added theming for headers and footers to switch statement

This commit is contained in:
scottjehl 2010-10-01 18:45:21 -04:00
parent 8a013023eb
commit 3f2c23b66d

View file

@ -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':