diff options
author | Bharat Mediratta <bharat@menalto.com> | 2011-04-23 07:20:58 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2011-04-23 07:20:58 -0700 |
commit | 07c266b973cd65d44bb769c19d86b1245ed2c9e5 (patch) | |
tree | 7aa06396c3314145fbe137ba500ed1a34b5458c6 /modules/g2_import/views | |
parent | 9b993f6e687649dc092ff21c99098e3bfc809f31 (diff) |
Enable autocomplete for the embed path. Fixes #1687.
Diffstat (limited to 'modules/g2_import/views')
-rw-r--r-- | modules/g2_import/views/admin_g2_import.html.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/g2_import/views/admin_g2_import.html.php b/modules/g2_import/views/admin_g2_import.html.php index 20b243d5..1094524f 100644 --- a/modules/g2_import/views/admin_g2_import.html.php +++ b/modules/g2_import/views/admin_g2_import.html.php @@ -1,4 +1,17 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> +<?= $theme->css("jquery.autocomplete.css") ?> +<?= $theme->script("jquery.autocomplete.js") ?> +<script type="text/javascript"> +$("document").ready(function() { + $("form input[name=embed_path]").autocomplete( + "<?= url::site("__ARGS__") ?>".replace("__ARGS__", "admin/g2_import/autocomplete"), + { + max: 256, + loadingClass: "g-loading-small", + }); +}); +</script> + <div id="g-admin-g2-import" class="g-block"> <h1> <?= t("Gallery 2 import") ?> </h1> <p> |