fix trim from roomtype and roompref fields on reg form

This commit is contained in:
German Correa 2018-10-30 13:08:53 -03:00
parent 949a0550bb
commit 31c3ea3c8b
2 changed files with 3 additions and 3 deletions

View File

@ -91,8 +91,8 @@ function select2Focus() {
submitHandler: function(form){ submitHandler: function(form){
var formdata = $(form).serializeArray(); var formdata = $(form).serializeArray();
formdata.find(item => item.name === "pais").value = $("#pais").select2("data")[0].text; formdata.find(item => item.name === "pais").value = $("#pais").select2("data")[0].text.trim();
formdata.find(item => item.name === "roomtype").value = $("#roomtype").select2("data")[0].text; formdata.find(item => item.name === "roomtype").value = $("#roomtype").select2("data")[0].text.trim();
var parameters = $.param(formdata); var parameters = $.param(formdata);
/*$.ajax({ /*$.ajax({
url: 'api/register', url: 'api/register',

View File

@ -143,7 +143,7 @@ only screen and (max-width: 760px),
<td>{{ reg.fechaLlegada | default("No especificado") }}</td> <td>{{ reg.fechaLlegada | default("No especificado") }}</td>
<td>{{ reg.fechaPartida | default("No especificado") }}</td> <td>{{ reg.fechaPartida | default("No especificado") }}</td>
<td>{{ reg.cartaInvitacion ? 'Si' : 'No' }}</td> <td>{{ reg.cartaInvitacion ? 'Si' : 'No' }}</td>
<td>{{ reg.roomingPref }}</td> <td>{{ reg.roomingPref|default("No hotel") }}</td>
<td>{{ reg.roomate|default("No especificado") }}</td> <td>{{ reg.roomate|default("No especificado") }}</td>
<td>{{ reg.fechaRegistro }}</td> <td>{{ reg.fechaRegistro }}</td>
</tr> </tr>