Skip Navigation

[Resuelto] formating part 2

This support ticket is created hace 6 años, 11 meses. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Este tema contiene 3 respuestas, tiene 2 mensajes.

Última actualización por Akhil hace 6 años, 11 meses.

Asistido por: Luo Yang.

Autor
Mensajes
#599130

Hi Luo , continueing from the other topic.

Is it possible the format to return back to mask value in the input box back for UI purpose. ?

you mention:
since you are using AJAX search, you will need to trigger the "mask" JS effect after the AJAX search is competed, for example:

$(document).on('js_event_wpv_parametric_search_results_updated', function(){
...
}); 

we already have the above function running, so ill just add this line to display back the mask value ?
like this .

//run in when the view ajax search is updated
  $(document).on('js_event_wpv_parametric_search_results_updated', function(){
      display_tenure();
      setup_attributes();
    $("input[name='property-price_min']").mask('#,##0', {reverse: true});
    $("input[name='property-price_max']").mask('#,##0', {reverse: true});

  }); 

#599190

Dear C6410,

Thanks for the details, I checked the document of Jquery mask, they have built-in method: unmask():
enlace oculto

so I have modified the JS codes as below:

     $('.wpv-submit-trigger').on('click', function() {
		$("input[name='property-price_min']").unmask();
		$("input[name='property-price_max']").unmask();
     	return true;
     });

Please test again, check if it is fixed or not. thanks

#599362

Hi Luo,

Does this mean i no need to code from part1 anymore and just use this ? thanks.

#599446

thanks.