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_list.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_list.tpl')
| -rw-r--r-- | templates/edit_storage_list.tpl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/edit_storage_list.tpl b/templates/edit_storage_list.tpl index 55240a6..9f7210e 100644 --- a/templates/edit_storage_list.tpl +++ b/templates/edit_storage_list.tpl @@ -1,7 +1,7 @@ {strip} {* don't replicate the surrounding div when inserting ajax content *} {if !$gBitThemes->isAjaxRequest()} - <div id="edit_storage_list{if !$uploadTab}_tab{/if}"> + <div id="edit_storage_list{if !$uploadTab}_tab{/if}{if $form_id}_{$form_id}{/if}"> {/if} {if $gContent->mStorage} <div class="row"> @@ -54,8 +54,8 @@ {capture name=urlArgs}{$attachmentBaseArgs}content_id={$gContent->mContentId}{if empty($gContent->mContentId)}{foreach from=$gContent->mStorage key=key item=val}&STORAGE[existing][{$val.attachment_id}]={$val.attachment_id}{/foreach}{/if}{/capture} {if $libertyUploader || $gBitSystem->getConfig('liberty_attachment_style') == 'ajax'} <a href="javascript:void(0);" onclick=" - BitAjax.updater('edit_storage_list_tab', '{$smarty.const.LIBERTY_PKG_URL}ajax_edit_storage.php', '{$smarty.capture.urlArgs}&deleteAttachment={$attachmentId}'); - BitAjax.updater('edit_storage_list', '{$smarty.const.LIBERTY_PKG_URL}ajax_edit_storage.php', '{$smarty.capture.urlArgs}');"> + BitAjax.updater('edit_storage_list_tab_{$form_id}', '{$smarty.const.LIBERTY_PKG_URL}ajax_edit_storage.php', '{$smarty.capture.urlArgs}&deleteAttachment={$attachmentId}&form_id={$form_id}'); + BitAjax.updater('edit_storage_list_{$form_id}', '{$smarty.const.LIBERTY_PKG_URL}ajax_edit_storage.php', '{$smarty.capture.urlArgs}&form_id={$form_id}');"> {biticon ipackage="icons" iname="edit-delete" iexplain="delete"} </a> {else} |
