Skip to content

Instantly share code, notes, and snippets.

@mboynes
Created February 20, 2014 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mboynes/9115419 to your computer and use it in GitHub Desktop.
Save mboynes/9115419 to your computer and use it in GitHub Desktop.
Global keyboard shortcut for the Bonus Time Redmine plugin
viewRmTimesheet = function() {
var timesheet_link = $('.bonus-time');
if (timesheet_link.length > 0) {
ks_dispatcher.go(timesheet_link.attr('href'));
}
}
if ( ks_dispatcher && ks_dispatcher.ks_managers && ks_dispatcher.ks_managers.length && ks_dispatcher.ks_managers[0] && ks_dispatcher.ks_managers[0].keys ) {
ks_dispatcher.ks_managers[0].keys.t = {
press: viewRmTimesheet.bind(this),
description: "View timesheet"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment