Ejemplo n.º 1
0
function saveSettings()
{
    list($table, $field, $id) = explode('-', $_POST['id']);
    $value = strval($_POST['value']);
    $updated = updateJEditableField($table, $field, $value, $id);
}
Ejemplo n.º 2
0
function renameProject()
{
    $projectId = intval($_POST['id']);
    $name = trim(strval($_POST['value']));
    updateJEditableField('projects', 'name', $name, $projectId);
}
Ejemplo n.º 3
0
function updateCard()
{
    $cardId = intval($_POST['id']);
    $body = trim(strip_tags(stripcslashes(strval($_POST['value']))));
    updateJEditableField('cards', 'body', $body, $cardId);
}