Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Multi-image with drag and drop sorting in Elefant.
<!-- apps/test/views/images.html -->
{! filemanager/util/multi-image !}
$(function () {
$('#sub').click (function () {
console.log ($('#images').val ().split ('|'));
$.multi_image ({
field: '#images',
preview: '#preview'
{"Attach images"}:
<div id="preview"></div>
<input type="hidden" name="images" id="images" />
<button id="sub">Show Data</button>
<?php // apps/test/handlers/images.php
$page->layout = 'admin';
$this->require_admin ();
echo $tpl->render ('test/images');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.