summaryrefslogtreecommitdiff
path: root/templates/edit_storage_list.tpl
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-11-14 17:57:45 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-11-14 17:57:45 +0000
commit0a6ec5495b1c96a38918d9b1047cce4350f3c084 (patch)
tree610b94afc6b8ceadf764587f7c1b9a2df1296748 /templates/edit_storage_list.tpl
parent65e3b92218796d4c6454da39dafe30fb8449edd6 (diff)
downloadliberty-0a6ec5495b1c96a38918d9b1047cce4350f3c084.tar.gz
liberty-0a6ec5495b1c96a38918d9b1047cce4350f3c084.tar.bz2
liberty-0a6ec5495b1c96a38918d9b1047cce4350f3c084.zip
don't write new divs when updating by ajax
Diffstat (limited to 'templates/edit_storage_list.tpl')
-rw-r--r--templates/edit_storage_list.tpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/edit_storage_list.tpl b/templates/edit_storage_list.tpl
index 279cf38..b63c4b9 100644
--- a/templates/edit_storage_list.tpl
+++ b/templates/edit_storage_list.tpl
@@ -1,6 +1,6 @@
{strip}
{* don't replicate the surrounding div when inserting ajax content *}
-{if !$libertyUploader}
+{if !$gBitThemes->isAjaxRequest()}
<div id="edit_storage_list{if !$uploadTab}_tab{/if}">
{/if}
{if $gContent->mStorage}
@@ -38,8 +38,8 @@
{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', '{$smarty.const.LIBERTY_PKG_URL}ajax_edit_storage.php', '{$smarty.capture.urlArgs}&amp;deleteAttachment={$attachmentId}');
- BitAjax.updater('edit_storage_list_tab', '{$smarty.const.LIBERTY_PKG_URL}ajax_edit_storage.php', '{$smarty.capture.urlArgs}');">
+ 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}');">
{biticon ipackage="icons" iname="edit-delete" iexplain="delete"}
</a>
{else}
@@ -52,7 +52,7 @@
</table>
</div>
{/if}
-{if !$libertyUploader}
+{if !$gBitThemes->isAjaxRequest()}
</div>
{/if}
{/strip}