Commit 775af3d9 authored by xavidp's avatar xavidp

[ENH]Autocomplete pagenames added to 'edit structures' interface

parent 754e3742
......@@ -129,6 +129,9 @@
<input type="text" name="pageAlias" id="pageAlias" value="{$pageAlias}" /> <input type="submit" name="create" value="{tr}Update{/tr}" />
</td>
</tr>
{if $prefs.javascript_enabled eq 'y' and $prefs.feature_jquery_autocomplete eq 'y'}
{jq}$("#pageAlias").tiki("autocomplete", "pagename");{/jq}
{/if}
<tr>
<td>{tr}Move in this structure{/tr}</td>
<td>
......@@ -171,6 +174,9 @@
</td>
<td>
<input type="text" name="name" id="name" />
{if $prefs.javascript_enabled eq 'y' and $prefs.feature_jquery_autocomplete eq 'y'}
{jq}$("#name").tiki("autocomplete", "pagename");{/jq}
{/if}
</td>
</tr>
<tr>
......@@ -178,6 +184,10 @@
<label for="name2">{tr}Use pre-existing page:{/tr}</label><br /><br />
<input type="text" name="find_objects" id="find_objects" value="{$find_objects|escape}" />
<input type="submit" value="{tr}Filter{/tr}" name="search_objects" />
{if $prefs.javascript_enabled eq 'y' and $prefs.feature_jquery_autocomplete eq 'y'}
{jq}$("#find_objects").tiki("autocomplete", "pagename");{/jq}
{/if}
{if $prefs.feature_categories eq 'y'}
<select name="categId">
<option value='' {if $find_categId eq ''}selected="selected"{/if}>{tr}any category{/tr}</option>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment