diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-24 14:18:15 -0700 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-24 14:18:15 -0700 |
| commit | 078c77a62b623322956457bfd7bfbdaf56203b00 (patch) | |
| tree | 941a39067f101b4773a642572f24575ffc43db3e /modules/gallery/views | |
| parent | fa1d32e6466d8c6ffe77d163e2da9c71688a3c61 (diff) | |
Add tag autocomplete to the album and photo edit pop up dialogs.
This required putting a wrapper view around the forms and passing
this view as the parameter to the item_edit_form event. The view
contains a $script variable that the modules can add script to be
included in the form html when rendered as part of the ajax response.
Diffstat (limited to 'modules/gallery/views')
| -rw-r--r-- | modules/gallery/views/item_edit.html.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/gallery/views/item_edit.html.php b/modules/gallery/views/item_edit.html.php new file mode 100644 index 00000000..9aa2fb64 --- /dev/null +++ b/modules/gallery/views/item_edit.html.php @@ -0,0 +1,9 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<? if (!empty($script)): ?> +<script> + <?= implode("\n", $script) ?> +</script> +<? endif ?> +<div id="gEditFormContainer"> + <?= $form ?> +</div>
\ No newline at end of file |
