Till minne av
har en gåva lämnats till
från

Beställa minnestelegram

* Till minne av :
* Motiv

* Fond:
Hälsning :
*Från (max 200 tecken och 14 rader) "Emojis" går ej att använda
Kvar att skriva tecken
Vers (max 800 tecken och 10 rader):"Emojis" går ej att använda
Kvar att skriva tecken
* Obligatoriska fält
Vissa obligatoriska fält är ej ifyllda :
"; */ // console.log(removeContent); /**GÖR SÅ ATT BILDEN SYNS I DIVEN*/ $("#ownImageDiv").html(response.content); /**GÖR SÅ BILDEN BLIR MARKERAD*/ $("#myOwnImageId").addClass('selected'); /**Skriver ut länk för att ta bort bild*/ // $("#removeOwnImage").html(removeContent); } }); /** NÄR MAN RENSAR BORT EN BILD*/ $('body').on('click', '.removeOneImage', function (e) { e.preventDefault(); var id=this.id; //alert(id); //alert('remove'); $.post("request/ownImageRemove.php", {imageSession: id}, function (data) { $(".thumbnail").removeClass('selected'); $("#myOwnImageValueSelected").val('nej'); $("#myOwnImageValue").val(''); $("#ownImageDiv").hide(); }) }); /** KLICKAR PÅ EN EGEN BILD SÅ ATT DEN BLIR MARKERAD (den kan ju ha blivit avmarkerad)*/ $('body').on('click', '#myOwnImageId', function (e) { //alert('click'); /**TAR BORT DEN BILD SOM FÖRUT VAR MARKERAD*/ $(".thumbnail").removeClass('selected'); /**PÅPEKAR ATT DET ÄR EGNA MOTIVEN SOM SKA KÖRAS*/ $("#myOwnImageValueSelected").val('ja'); /**GÖR SÅ BILDEN BLIR MARKERAD*/ $("#myOwnImageId").addClass('selected'); }); $("#listPerson").change(function() { var idPerson = $("#listPerson").val();//this.value; if (idPerson == -1) { $("#divFuneralInfo").hide(); $("#divOtherPerson").show(); return; } $("#divFuneralInfo").show(); $("#divOtherPerson").hide(); $.ajax({ url: "request/selectPersonInfo.php", type: "POST", dataType: "json", data: {id: idPerson}, success: function(data){ //console.log(data); if (data.show) { $("#divFamily").hide(); if (data.place) { $("#place").html(data.place); $("#divPlace").show(); } else $("#divPlace").hide(); if (data.date) { $("#time").html(data.date); $("#divTime").show(); } else $("#divTime").hide(); } else { $("#divPlace").hide(); $("#divTime").hide(); $("#divFamily").show(); } if (data.fond != 0) { $("#listFond").val(data.fond); $("#listFond").change(); } }, error: function(xhr, status, err){ console.log("error:"); console.log(status); } }).done(function(data){ //alert(JSON.stringify(data)); }); }); $("#listGreating").change(function(e){ if (this.value == -1){ $("#optionalGreating").show(); $("#idGreating").removeClass("col-sm-12"); $("#idGreating").addClass("col-sm-4"); } else{ $("#optionalGreating").hide(); $("#idGreating").removeClass("col-sm-4"); $("#idGreating").addClass("col-sm-12"); } }); $("#listBelopp").change(function(e){ if (this.value == -1){ $("#optionalBelopp").show(); $("#idBelopp").removeClass("col-sm-4"); $("#idBelopp").addClass("col-sm-2"); } else{ $("#optionalBelopp").hide(); $("#idBelopp").removeClass("col-sm-2"); $("#idBelopp").addClass("col-sm-4"); } }); $("#listFond").change(function(e){ if (this.value == -1){ $("#divBelopp").hide(); $("#divFond").removeClass("col-sm-8"); $("#divFond").addClass("col-sm-12"); } else{ $("#divBelopp").show(); $("#divFond").removeClass("col-sm-12"); $("#divFond").addClass("col-sm-8"); } }); $(function() { if ($("#listPerson").val()) $("#listPerson").val($("#listPerson").val()).change(); if ($("#listFond").val()) $("#listFond").val($("#listFond").val()).change(); if($("#listGreating").val()) $("#listGreating").val($("#listGreating").val()).change(); $("#divTime").hide(); $("#divPlace").hide(); });