add shortcuts, help dialog and start on add-action dialog

This commit is contained in:
Reinier Balt 2013-06-27 22:47:34 +02:00
parent 972210326a
commit 8e0013d0df
7 changed files with 63 additions and 10 deletions

View file

@ -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

View file

@ -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")

View file

@ -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"