{* $Id: mod-quick_edit.tpl 17630 2009-03-26 03:37:22Z luciash $ *}

{if !isset($tpl_module_title)}{assign var=tpl_module_title value="{tr}$module_title{/tr}"}{/if}
{tikimodule error=$module_params.error title=$tpl_module_title name="quick_edit" flip=$module_params.flip decorations=$module_params.decorations nobox=$module_params.nobox notitle=$module_params.notitle}
<form method="get" action="{$qe_action|escape}">
{if $categId}<input type="hidden" name="categId" value="{$categId}" />{/if}
{if $templateId}<input type="hidden" name="templateId" value="{$templateId}" />{/if}
{if $mod_quickedit_heading}<div class="bod-data">{$mod_quickedit_heading}</div>{/if}
<input id="{$qefield}" type="text" {if $module_params.size}size="{$size}"{/if}name="page" {if $prefs.feature_jquery eq 'y' and $prefs.feature_jquery_autocomplete eq 'y'}autocomplete="off"{/if} />
<input type="submit" name="quickedit" value="{$submit}" />
</form>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
{if $prefs.feature_jquery eq 'y' and $prefs.feature_jquery_autocomplete eq 'y'}
{literal}
$jq(document).ready( function() {
	$jq("#{/literal}{$qefield}{literal}")
		.autocomplete('tiki-listpages.php?listonly',
			{extraParams: {'httpaccept': 'text/javascript'},
			 dataType: "json",
			 parse: parseAutoJSON,
			 formatItem: function(row) { return row; }
			});
});
{/literal}
{elseif $prefs.feature_mootools eq 'y'}
{literal}
window.addEvent('domready', function() {
	var o = new Autocompleter.Request.JSON('{/literal}{$qefield}{literal}', 'tiki-listpages.php?listonly', {
		'postVar': 'find'
	});
});
{/literal}
{/if}
//--><!]]>
</script>
{/tikimodule}
