added inner wrapper for toggling layout in wider resolutions

This commit is contained in:
scottjehl 2010-10-05 17:33:56 -04:00
parent 5467762a3b
commit e03d33ac9e

View file

@ -16,9 +16,13 @@ $.fn.controlgroup = function(options){
flCorners = o.direction == 'horizontal' ? ['ui-corner-left', 'ui-corner-right'] : ['ui-corner-top', 'ui-corner-bottom'],
type = $(this).find('input:eq(0)').attr('type');
$(this).wrapInner('<div class="ui-controlgroup-controls"></div>');
//replace legend with more stylable replacement div
$('<div role="heading" class="ui-controlgroup-label">'+ groupheading.html() +'</div>').insertBefore(groupheading);
groupheading.remove();
if(groupheading){
$('<div role="heading" class="ui-controlgroup-label">'+ groupheading.html() +'</div>').insertBefore( $(this).children(0) );
groupheading.remove();
}
$(this).addClass('ui-corner-all ui-controlgroup ui-controlgroup-'+o.direction);