Commit c22b7553 authored by joshua-gould's avatar joshua-gould

help menu tracking

parent 73b4ab4e
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -23,12 +23,20 @@ morpheus.HelpMenu = function() {
e.stopPropagation();
e.stopImmediatePropagation();
window.open('mailto:morpheus@broadinstitute.org');
morpheus.Util.trackEvent({
eventCategory : 'ToolBar',
eventAction : 'contact'
});
});
this.$el.find('[name=tutorial]').on('click', function(e) {
e.preventDefault();
e.stopPropagation();
e.stopImmediatePropagation();
window.open(morpheus.Util.URL + 'tutorial.html');
morpheus.Util.trackEvent({
eventCategory : 'ToolBar',
eventAction : 'tutorial'
});
});
......@@ -37,11 +45,19 @@ morpheus.HelpMenu = function() {
e.stopPropagation();
e.stopImmediatePropagation();
window.open(morpheus.Util.URL + 'linking.html');
morpheus.Util.trackEvent({
eventCategory : 'ToolBar',
eventAction : 'linking'
});
});
this.$el.find('[name=source]').on('click', function(e) {
e.preventDefault();
e.stopPropagation();
e.stopImmediatePropagation();
window.open('https://github.com/joshua-gould/morpheus.js');
morpheus.Util.trackEvent({
eventCategory : 'ToolBar',
eventAction : 'source'
});
});
};
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment