Ajax load - Problem with Loader::helper("concrete/asset_library");
Permalink
Hello
I was migrating my blocks to the new version of C5, but im stuck at the moment where i call ajax from block edit to add more images to my slider
my tools:
it must append normally like:
<tr>
<td>image</td>
<td>input</td>
<td>input</td>
<td>input</td>
</tr>
but it is like after append from tools
<SEE ATTACHMENT>
i know that the problem is when i want to put asset library image, because when i remove this code
then i get my jquery ajax append normally with tr td td... tr
Is this is a bug of new version of C5 ?
I was migrating my blocks to the new version of C5, but im stuck at the moment where i call ajax from block edit to add more images to my slider
my tools:
<?php defined('C5_EXECUTE') or die("Access Denied."); ?> <?php if(isset($_POST["opcja"])){ ?> <?php $form = Loader::helper('form'); $al = Loader::helper("concrete/asset_library"); ?> <tr class="danaZslidera"> <td><?php echo $al->image("zdjeciaFid", "zdjeciaFid[]", "Wybierz zdjęcie", null); ?></td> <td><?php echo $form->textarea("zdjeciaTytuly[]", null, null); ?></td> <td><?php echo $form->textarea("zdjeciaOpisy[]", null, null); ?></td> <td><?php echo $form->text("zdjeciaLinki", null, null); ?> <div class="przyciskDodaj">+</div> <div class="przyciskUsun">-</div></td> </tr> <?php } ?>
it must append normally like:
<tr>
<td>image</td>
<td>input</td>
<td>input</td>
<td>input</td>
</tr>
but it is like after append from tools
<SEE ATTACHMENT>
i know that the problem is when i want to put asset library image, because when i remove this code
<?php echo $al->image("zdjeciaFid", "zdjeciaFid[]", "Wybierz zdjęcie", null); ?>
then i get my jquery ajax append normally with tr td td... tr
Is this is a bug of new version of C5 ?