function updateRackSortOrderAJAX()
{
    updateRackSortOrder($_REQUEST['racks']);
    echo 'OK';
}
Beispiel #2
0
function resetRackSortOrder($row_id)
{
    // Re-order the row's racks
    $racks = getRacks($row_id);
    $rack_ids = array();
    foreach ($racks as $rack_id => $rackDetails) {
        $rack_ids[] = $rack_id;
    }
    updateRackSortOrder($rack_ids);
}