{if $prefs.javascript_enabled !== 'y'}
	<div class="modal-footer">
		<a class="btn btn-default" href="{$extra.referer}">
			{tr}Back{/tr}
		</a>
		<button type='submit' form="confirm-action" class="btn {if !empty($confirmButtonClass)}{$confirmButtonClass}{else}btn-primary{/if}">
			{if !empty($confirmButton)}
				{$confirmButton}
			{else}
				{tr}OK{/tr}
			{/if}
		</button>
	</div>
{*If js is enabled, the layouts/internal/modal.tpl will be used which already has buttons*}
{else}
	{jq}
	$('form.confirm-action').submit(function () {
		confirmAction(this);
		return false;
	});
	{/jq}
{/if}

{if $prefs.javascript_enabled !== 'y'}
	<div class="modal-footer">
		<a class="btn btn-default" href="{$extra.referer}">
			{tr}Back{/tr}
		</a>
		<button type='submit' form="confirm-action" class="btn {if !empty($confirmButtonClass)}{$confirmButtonClass}{else}btn-primary{/if}">
			{if !empty($confirmButton)}
				{$confirmButton}
			{else}
				{tr}OK{/tr}
			{/if}
		</button>
	</div>
{/if}
{* If js is enabled, the layouts/internal/modal.tpl will be used which already has buttons *}

Remove jq not needed due to r56027
[REF] Remove jq not needed due to r56027

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