<div class="adminoptionbox">
	<div class="adminoption">
		<input id="{$p.id|escape}" type="checkbox" name="{$p.preference|escape}" {if $p.value eq 'y'}checked="checked"{/if}/>
	</div>
	<div class="adminoptionlabel" >
		<label for="{$p.id|escape}">{$p.name|escape}</label>
		{include file=prefs/shared-flags.tpl}
	</div>
	{include file=prefs/shared-dependencies.tpl}
	{jq}
	{literal}
	(function(){
	{/literal}
	var id = '#{$p.id|escape}';
	var block = '#{$p.preference|escape}_childcontainer';
	{literal}
	if( ! $(id).attr('checked') ) {
		$(block).hide();
	}
	$(id).change( function() {
		if( $(id).attr('checked') ) {
			$(block).show();
		} else {
			$(block).hide();
		}
	} );
	})();
	{/literal}{/jq}
</div>

<div class="adminoptionbox">
	<div class="adminoption">
		<input id="{$p.id|escape}" type="checkbox" name="{$p.preference|escape}" {if $p.value eq 'y'}checked="checked"{/if}/>
	</div>
	<div class="adminoptionlabel" >
		<label for="{$p.id|escape}">{$p.name|escape}</label>
		{include file=prefs/shared-flags.tpl}
	</div>
	{include file=prefs/shared-dependencies.tpl}
	{jq}
	{literal}
	(function(){
	{/literal}
	var id = '#{$p.id|escape}';
	var block = '{$p.preference|escape}_childcontainer';
	{literal}
	if( ! $jq(id).attr('checked') ) {
		$jq('#' + block).hide();
	}
	$jq(id).change( function() {
		if( $jq(id).attr('checked') ) {
			show(block);
		} else {
			hide(block);
		}
	} );
	})();
	{/literal}{/jq}
</div>

Use $jq not $ for jQuery object - also changed to use the default show/hide functions for animation (as set in admin/look/UI Effects)
[FIX] Use $jq not $ for jQuery object - also changed to use the default show/hide functions for animation (as set in admin/look/UI Effects)

git-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@21826 b456876b-0849-0410-b77d-98878d47e9d5
