How to detect clear/close from set in jQueryMobile DateBox?

162 Views Asked by At

I'm using jQuery Mobile DateBox (in mode "timebox") to make the user select a time.

This works fine, but both hitting the top-left close icon and the Set Time button result in the same callback with the same arguments.

I'm looking for a way to make the close button just dismiss the control.

I found example here, but I fear that the DOM for the control has changed as $('.ui-datebox-controls') gives an empty result. I can't find the control in the DOM either.

So, I hoped for openCallBack or beforeOpenCallBack to realise a similar trick, but neither appear to be called.

0

There are 0 best solutions below