SortableJS not posting data

20 views
Skip to first unread message

brendan...@gmail.com

unread,
Apr 27, 2019, 1:32:54 PM4/27/19
to intercooler-js
Hi guys,

I followed the sortable example to the letter and my list works when i drag and drop items etc... I've set the ic-put-to path and its gets called but I get no data at all. I'm using a PHP framework and all I get in the var dump from the put/post is the following.

array (size=6)
'ic-request' => string 'true' (length=4)
'ic-element-id' => string 'task-list-items' (length=20)
'ic-id' => string '1' (length=1)
'ic-target-id' => string 'task-list-items' (length=20)
'ic-trigger-id' => string 'task-list-items' (length=20)
'ic-current-url' => string '/tasks?id=1' (length=11)

Theres nothing else in the bodyParams or the Post data...

Any advice or assistance would be appreciated.

<ul class="list-group" ic-put-to="/tasks/sort" ic-trigger-on="end">
<li data-value="<?= $item->id; ?>">
<input type="hidden" name="tasks" value="<?= $item->id ?>">
Task name
</li>
</ul>

This works great, even fires the event but i get no tasks id'sto sort.

Thanks
Brendan

Reply all
Reply to author
Forward
0 new messages