{if $perspectives|@count gt 0}
	{tikimodule error=$module_params.error title=$tpl_module_title name="perspective" flip=$module_params.flip decorations=$module_params.decorations nobox=$module_params.nobox notitle=$module_params.notitle}
		<form method="get" action="tiki-switch_perspective.php">
			<select name="perspective">
				<option>{tr}Default{/tr}</option>
				{foreach from=$perspectives item=persp}
					<option value="{$persp.perspectiveId|escape}"{if $persp.perspectiveId eq $current_perspective} selected="selected"{/if}>{$persp.name|escape}</option>
				{/foreach}
			</select>
			<input type="submit" value="{tr}Go{/tr}"/>
		</form>
		{if $tiki_p_perspective_admin eq 'y'}
			<div align="center">
			<a href="tiki-edit_perspective.php">{tr}Edit perspectives{/tr}</a>
			</div>
		{/if}
	{/tikimodule}
{/if}
{if $perspectives|@count gt 0}
	{tikimodule error=$module_params.error title=$tpl_module_title name="perspective" flip=$module_params.flip decorations=$module_params.decorations nobox=$module_params.nobox notitle=$module_params.notitle}
		<form method="get" action="tiki-switch_perspective.php">
			<select name="perspective" onchange="this.form.submit();">
				<option>{tr}Default{/tr}</option>
				{foreach from=$perspectives item=persp}
					<option value="{$persp.perspectiveId|escape}"{if $persp.perspectiveId eq $current_perspective} selected="selected"{/if}>{$persp.name|escape}</option>
				{/foreach}
			</select>
			<noscript>
				<input type="submit" value="{tr}Go{/tr}"/>
			</noscript>
		</form>
		{if $tiki_p_perspective_admin eq 'y'}
			<div align="center">
			<a href="tiki-edit_perspective.php">{tr}Edit perspectives{/tr}</a>
			</div>
		{/if}
	{/tikimodule}
{/if}
Use javascript to switch perspective on select change (and hide "Go" button) if enabled, to be more consistent with other modules (theme, lang etc)
[MOD] Use javascript to switch perspective on select change (and hide "Go" button) if enabled, to be more consistent with other modules (theme, lang etc)

git-svn-id: 722c0fef737e30edb7d5e851b50e1eda1e207b8c@26852 b456876b-0849-0410-b77d-98878d47e9d5
