Added release/regain lock points to the subtitle app
Created a LockService service for release/regain
subtitle locks
Added timeouts for both session idling and
regaining locks to subtitleEditor directive
Merge branch 'dev' of github.com:pculture/unisubs into dev
Merge branch 'dev' of github.com:pculture/unisubs into dev
Merge branch 'dev' of github.com:pculture/unisubs into dev
* Made regain/release lock always require post
* Added languageCode to editorData so we don't
get a redirect when trying to access the lock
endpoints (because '/subtitles/' -> '/en/subtitles')
Added ngCookies so we can easily access csrftoken cookie
* Changed lock service to use languageCode
* Added csrftoken to the http calls
* Took console.log off
* Put the right amount of seconds (60/20s)
* When releasing, just show the alert after the http is done
Change regain_lock response json to be more clear
Added new event to modal so we can change its header
dynamically
Instead of showing a simple alert when the session
expires, show a modal that allows the user to go
back to work and times out in 120s, releasing
the language lock.
Merge branch 'dev' of github.com:pculture/unisubs into dev