diff options
| author | wjames5 <will@tekimaki.com> | 2008-07-15 18:57:49 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2008-07-15 18:57:49 +0000 |
| commit | c0aaf386ae6644d8ad16d449c36d8aa1010c729b (patch) | |
| tree | 09c7b84ab8c8a927a919be46b5331892bb9c235b /templates/edit_storage.tpl | |
| parent | 99b91b4820069d4c45e11d4ce15ac5399df4dc33 (diff) | |
| download | liberty-c0aaf386ae6644d8ad16d449c36d8aa1010c729b.tar.gz liberty-c0aaf386ae6644d8ad16d449c36d8aa1010c729b.tar.bz2 liberty-c0aaf386ae6644d8ad16d449c36d8aa1010c729b.zip | |
attach a form_id to ajax attachment forms so that you can have multiple attachment forms on a page and have the updates all work smoothly.
Diffstat (limited to 'templates/edit_storage.tpl')
| -rw-r--r-- | templates/edit_storage.tpl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/edit_storage.tpl b/templates/edit_storage.tpl index d684db9..738f464 100644 --- a/templates/edit_storage.tpl +++ b/templates/edit_storage.tpl @@ -1,4 +1,11 @@ {strip} +{* in some ajax cases we need to uniquely identify portions of a form so we get an id if we dont already have one *} +{if !$form_id} + {capture name=form_id} + {form_id} + {/capture} + {assign var=form_id value=$smarty.capture.form_id} +{/if} {* we will use the LibertyMime method if available *} {if $gLibertySystem->isPluginActive( $smarty.const.LIBERTY_DEFAULT_MIME_HANDLER )} {foreach from=$gLibertySystem->getAllMimeTemplates('upload') item=tpl} |
