Permalink
Browse files

Controlgroup: Added option theme. Fixes #5301.

  • Loading branch information...
jaspermdegroot committed May 21, 2013
1 parent 7f3f7c5 commit 6bd0cafc5303a4fe4784fab56d3941b8384efa52
Showing with 7 additions and 0 deletions.
  1. +7 −0 js/widgets/controlgroup.js
@@ -14,6 +14,7 @@ define( [ "jquery",
$.widget( "mobile.controlgroup", $.mobile.widget, $.extend( {
options: {
theme: null,
shadow: false,
corners: true,
excludeInvisible: true,
@@ -55,6 +56,12 @@ $.widget( "mobile.controlgroup", $.mobile.widget, $.extend( {
this.refresh();
}
if ( o.theme !== undefined ) {
$el
.removeClass( "ui-group-theme-" + this.options.theme )
.addClass( "ui-group-theme-" + o.theme );
}
if ( o.corners !== undefined ) {
$el.toggleClass( "ui-corner-all", o.corners );
}

0 comments on commit 6bd0caf

Please sign in to comment.