Files
Facilitor/APPL/MLD/mld_edit_note_save.asp
Jos Groot Lipman 4bbce877d8 AAIT#39909 'anonieme' autorisatie vanuit een link in de bon of e-mail
svn path=/Website/trunk/; revision=33762
2017-05-10 08:18:56 +00:00

48 lines
1.5 KiB
Plaintext

<%@language = "javascript" %>
<% /*
$Revision$
$Id$
File: mld_edit_note_save.asp
Description: Het echte bewaren van een melding notitie, zonder interactie
Parameters: mld_key Meldingnummer
note_key notitie key
note notitie tekst
urole
Context: Vanuit mld_edit_note.asp en pda/notitie.asp
*/
var JSON_Result = true;
var mld_key = getQParamInt("mld_key");
var LOCKED_USER_OK = { "xmlnode": "melding", "key": mld_key };
%>
<!-- #include file="../Shared/common.inc" -->
<!-- #include file="../Shared/json2.js" -->
<!-- #include file="../Shared/save2db.inc" -->
<!-- #include file="mld.inc" -->
<!-- #include file="mld_edit_note.inc" -->
<%
var notestamp = getFParamDate("notestamp", new Date());
var changedby = note_recently_changed(mld_key, notestamp);
var note_key =
note_save(mld_key,
getFParam("note", ""),
{ note_key: getQParamInt("note_key", -1),
isFE: getQParam("urole","") == "fe",
zichtFE: getFParam("zichtbaarFE", "off" ) == "on",
notifyFE: getFParam("notifyFE", "off" ) == "on" });
var result = {success: true,
mld_key: mld_key,
note_key: note_key
};
if (changedby)
result.warning = L("lcl_mld_is_updatedby").format(changedby);
Response.Write(JSON.stringify(result));
Response.End;
%>