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 /attachment_uploader.php | |
| 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 'attachment_uploader.php')
| -rw-r--r-- | attachment_uploader.php | 6 |
1 files changed, 5 insertions, 1 deletions
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 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_liberty/attachment_uploader.php,v 1.14 2008/06/25 22:47:56 spiderr Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_liberty/attachment_uploader.php,v 1.15 2008/07/15 18:57:49 wjames5 Exp $ * @package liberty * @subpackage functions */ @@ -96,5 +96,9 @@ $gBitSmarty->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' )); ?> |
