ujiro99 / RedmineTimeTracker

Chrome/Electron app for tracking work time.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How I can call onSubmitClick in my own handler? (I want to stop time tracker by event)

krupnovdenis opened this issue · comments

Greetings. We have some task. We want start/stop tracking time on a client. How we can сall function that will send data to the server and stop tracking time. We found function "onSubmitClick" in "Auto constructor", is it? How we can call this function in our handler function using native js, or coffeescript.

Native js means outside of angular.js?
I think it is difficult. So I tried to enables to start/stop tracking from window scope.
This branch commit.
29fe79a

You can start/stop tracking using window.toggleTracking().
Does this commit solves your problem?