<%@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

*/
var JSON_Result = true;

%>
<!-- #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 mld_key = getQParamInt("mld_key");

var note_key =
         note_save(mld_key,
                   getFParam("note", ""),
                   { note_key: getQParamInt("note_key", -1),
                         isFE: getQParam("urole","") == "fe",
                      zichtFE: getFParam("zichtbaarFE", "off" ) == "on" });

var result = {success: true,
              mld_key: mld_key,
              note_key: note_key
             };

Response.Write(JSON.stringify(result));
Response.End;
%>