if ($subop == "save") {
$id = db_escape_string($_REQUEST["id"]);
- $caption = trim(db_escape_string($_REQUEST["value"]));
+ $caption = db_escape_string(trim($_REQUEST["value"]));
db_query($link, "BEGIN");
AND action_id = 7
AND owner_uid = " . $_SESSION["uid"]);
- print $caption;
+ print $_REQUEST["value"];
}
} else {
print $old_caption;
var id = elems[i].id.replace("LILT-", "");
new Ajax.InPlaceEditor(elems[i],
- 'backend.php?op=pref-labels&subop=save&id=' + id);
+ 'backend.php?op=pref-labels&subop=save&id=' + id,
+ {cols: 20, rows: 1});
}
}
}