diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-24 11:24:43 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-24 11:24:43 -0700 |
commit | fa1d32e6466d8c6ffe77d163e2da9c71688a3c61 (patch) | |
tree | d4025073bcad2bf49cbb36afa7e0eae24e55d3f7 /modules/tag/views | |
parent | 0e9b80d2efb942167fef269441e65722abac5f54 (diff) |
Partial implementation of ticket #80. Provide auto complete and suggestions on the tag add form in the tag sidebar block. Updated the xss golden file as well. Still to do figure out how toget it into the edit popup dialog
Diffstat (limited to 'modules/tag/views')
-rw-r--r-- | modules/tag/views/tag_block.html.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/tag/views/tag_block.html.php b/modules/tag/views/tag_block.html.php index 12c90857..233eb361 100644 --- a/modules/tag/views/tag_block.html.php +++ b/modules/tag/views/tag_block.html.php @@ -1,4 +1,14 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> +<script> + $("#gAddTagForm").ready(function() { + var url = $("#gTagCloud").attr("title") + "/autocomplete"; + $("#gAddTagForm input:text").autocomplete( + url, { + max: 30, + formatResult: formatTagAutoCompleteResult} + ); + }); +</script> <div id="gTagCloud" title="<?= url::site("tags") ?>"> <?= $cloud ?> </div> |