summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-12-08 07:47:28 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-12-08 07:47:28 +0000
commit19d009487b5aa37cca582f3b9ea2c2fb6c3e99a7 (patch)
treedec013c95a7cc0adc141333f2228e86a894cd439 /templates
parent494df8a25bc18cb25cfa8fb77b83c6004fc8bc90 (diff)
downloadliberty-19d009487b5aa37cca582f3b9ea2c2fb6c3e99a7.tar.gz
liberty-19d009487b5aa37cca582f3b9ea2c2fb6c3e99a7.tar.bz2
liberty-19d009487b5aa37cca582f3b9ea2c2fb6c3e99a7.zip
make urlArgs available in all situations
Diffstat (limited to 'templates')
-rw-r--r--templates/edit_storage_list.tpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/edit_storage_list.tpl b/templates/edit_storage_list.tpl
index b5eb2c4..fc7b845 100644
--- a/templates/edit_storage_list.tpl
+++ b/templates/edit_storage_list.tpl
@@ -47,8 +47,8 @@
<br />
{/if}
{if $gBitUser->isAdmin() || ($storage.user_id == $gBitUser->mUserId && $gBitUser->hasPermission('p_liberty_delete_attachments') ) }
+ {capture name=urlArgs}{$attachmentBaseArgs}content_id={$gContent->mContentId}{if empty($gContent->mContentId)}{foreach from=$gContent->mStorage key=key item=val}&amp;STORAGE[existing][{$val.attachment_id}]={$val.attachment_id}{/foreach}{/if}{/capture}
{if $libertyUploader || $gBitSystem->getConfig('liberty_attachment_style') == 'ajax'}
- {capture name=urlArgs}{$attachmentBaseArgs}content_id={$gContent->mContentId}{if empty($gContent->mContentId)}{foreach from=$gContent->mStorage key=key item=val}&amp;STORAGE[existing][{$val.attachment_id}]={$val.attachment_id}{/foreach}{/if}{/capture}
<a href="javascript:
BitAjax.updater('edit_storage_list_tab', '{$smarty.const.LIBERTY_PKG_URL}ajax_edit_storage.php', '{$smarty.capture.urlArgs}&amp;deleteAttachment={$attachmentId}');
BitAjax.updater('edit_storage_list', '{$smarty.const.LIBERTY_PKG_URL}ajax_edit_storage.php', '{$smarty.capture.urlArgs}');">