I have this timer ( jade )
timer(interval="1000", id="{{operator.queue_id}}-{{operator.uuid}}", start-time="operator.status_at") {{mminutes}}:{{sseconds}}
and I need to reset it to 0 on a particular event. and I'm using this code:
selector = m.payload.queue_id + '-' + m.payload.uuid
$('timer[id="' + selector + '"]')[0].stop()
$('timer[id="' + selector + '"]')[0].start()
Seems not to be working. Is it possible ?