/* * jQuery Mobile Framework: "controlgroup" plugin - corner-rounding for groups of buttons, checks, radios, etc * Copyright (c) jQuery Project * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license */ (function($, undefined ) { $.fn.controlgroup = function(options){ return this.each(function(){ var o = $.extend({ direction: $( this ).jqmData( "type" ) || "vertical", shadow: false },options); var groupheading = $(this).find('>legend'), flCorners = o.direction == 'horizontal' ? ['ui-corner-left', 'ui-corner-right'] : ['ui-corner-top', 'ui-corner-bottom'], type = $(this).find('input:eq(0)').attr('type'); //replace legend with more stylable replacement div if( groupheading.length ){ $(this).wrapInner('
'); $('