mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-11 03:38:51 +01:00
add shortcuts, help dialog and start on add-action dialog
This commit is contained in:
parent
972210326a
commit
8e0013d0df
7 changed files with 63 additions and 10 deletions
|
|
@ -17,6 +17,7 @@
|
|||
|
||||
// Stuff in app/assets
|
||||
//= require tracks.js
|
||||
//= require keybindings.js
|
||||
|
||||
// Stuff in vendor/assets
|
||||
// require jquery-ui-1.10.0.custom.min
|
||||
|
|
|
|||
|
|
@ -41,3 +41,15 @@ $ ->
|
|||
|
||||
mouseTrapRails.toggleHints() if mouseTrapRails.showOnLoad
|
||||
|
||||
Mousetrap.bind '?', -> $('div#tracks-shortcuts-dialog').modal()
|
||||
Mousetrap.bind 'a', -> $('div#tracks-add-action-dialog').modal()
|
||||
# GO TO
|
||||
# Mousetrap.bind 'g h', TracksApp.go_home
|
||||
Mousetrap.bind 'g c', -> alert("go context")
|
||||
# Mousetrap.bind 'g C', TracksApp.go_contexts
|
||||
Mousetrap.bind 'g t', -> alert("go tag")
|
||||
Mousetrap.bind 'g p', -> alert("go project")
|
||||
# Mousetrap.bind 'g P', TracksApp.go_projects
|
||||
# VIEW
|
||||
Mousetrap.bind 'v p', -> alert("group by project")
|
||||
Mousetrap.bind 'v c', -> alert("group by context")
|
||||
|
|
|
|||
|
|
@ -1 +1,6 @@
|
|||
# Tracks specific coffeescript
|
||||
# Tracks specific coffeescript
|
||||
# TracksApp =
|
||||
# goto_page: (page) -> window.location.href = page
|
||||
# go_home: this.goto_page "/"
|
||||
# go_contexts: this.goto_page "/contexts"
|
||||
# go_projects: this.goto_page "/projects"
|
||||
Loading…
Add table
Add a link
Reference in a new issue