Skip to content

Can I restart a timer that has initial start-time from 0 ? #139

@alduro

Description

@alduro

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions