Commit e6362ccb by Matteo

fix invio intervento

parent 9b3de026
......@@ -492,9 +492,9 @@ export class IntervistePage implements OnInit {
{
this.utilService.showLoading();
this.idCliente = AuthService.clienteSelezionato.id;
var element : HTMLInputElement = document.querySelector('input[type=text]');
var message = element.value;
this.intervisteService.addIntervento(this.idCliente, message, this.topicAttivo.idRichiesta).subscribe((res: NewRichiestaResponse)=>{
//var element : HTMLInputElement = document.querySelector('input[id=message]');//document.querySelector('input[type=text]');
//var message = element.value;
this.intervisteService.addIntervento(this.idCliente, this.message, this.topicAttivo.idRichiesta).subscribe((res: NewRichiestaResponse)=>{
this.utilService.closeLoading();
this.message = "";
if(res.error){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment