mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 11:29:24 -04:00
This required putting a wrapper view around the forms and passing this view as the parameter to the item_edit_form event. The view contains a $script variable that the modules can add script to be included in the form html when rendered as part of the ajax response.
9 lines
205 B
PHP
9 lines
205 B
PHP
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
<? if (!empty($script)): ?>
|
|
<script>
|
|
<?= implode("\n", $script) ?>
|
|
</script>
|
|
<? endif ?>
|
|
<div id="gEditFormContainer">
|
|
<?= $form ?>
|
|
</div>
|