diff options
Diffstat (limited to 'modules/photoannotation/views/photoannotation_block.html.php')
-rw-r--r-- | modules/photoannotation/views/photoannotation_block.html.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/photoannotation/views/photoannotation_block.html.php b/modules/photoannotation/views/photoannotation_block.html.php new file mode 100644 index 00000000..8861699a --- /dev/null +++ b/modules/photoannotation/views/photoannotation_block.html.php @@ -0,0 +1,17 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<script type="text/javascript"> + $("#g-user-cloud-form").ready(function() { + var url = $("#g-user-cloud").attr("ref") + "/autocomplete"; + $("#g-user-cloud-form input:text").autocomplete( + url, { + max: 30, + multiple: false, + cacheLength: 1 + } + ); + }); +</script> +<div id="g-user-cloud" ref="<?= url::site("photoannotation") ?>"> + <?= $cloud ?> +</div> +<?= $form ?>
\ No newline at end of file |