Skip to content

Instantly share code, notes, and snippets.

@tistre
Last active August 29, 2015 13:56
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 tistre/9239838 to your computer and use it in GitHub Desktop.
Save tistre/9239838 to your computer and use it in GitHub Desktop.
Bookmarklet to open the dialog for creating a Google Calendar event from a MantisBT issue detail page. Quick & dirty, works for me.
javascript: var title = 'Mantis #' + document.title.substring(2, (document.title.length - 11)); var url = 'https://www.google.com/calendar/render?action=TEMPLATE&sf=true&output=xml&text=' + encodeURIComponent(title) + '&details=' + encodeURIComponent('Details in Mantis: ' + location.href); window.open(url, 'mantisgcal', 'scrollbars=yes,width=1200,height=800,top=175,left=75,status=no,resizable=yes'); if (!document.all) T = (setTimeout('popw.focus()',50)); void(0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment