From c0aaf386ae6644d8ad16d449c36d8aa1010c729b Mon Sep 17 00:00:00 2001 From: wjames5 Date: Tue, 15 Jul 2008 18:57:49 +0000 Subject: 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. --- attachment_uploader.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'attachment_uploader.php') diff --git a/attachment_uploader.php b/attachment_uploader.php index b92b8f3..2b5da66 100644 --- a/attachment_uploader.php +++ b/attachment_uploader.php @@ -1,6 +1,6 @@ assign( 'gContent', $gContent ); $gBitSmarty->assign( 'libertyUploader', TRUE ); $gBitSmarty->assign( 'uploadTab', TRUE ); +if( isset( $_REQUEST['liberty_attachments']['form_id'] ) ){ + $gBitSmarty->assign( 'form_id', $_REQUEST['liberty_attachments']['form_id'] ); +} + echo $gBitSystem->display( 'bitpackage:liberty/attachment_uploader.tpl', NULL, array( 'format'=>'none', 'display_mode' => 'display' )); ?> -- cgit v1.3