Skip to content

Commit

Permalink
Add Start Reply
Browse files Browse the repository at this point in the history
Support for clicking Reply button in email
  • Loading branch information
kstubs committed Aug 24, 2019
1 parent aa6695b commit afe54fe
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/gmail.js
Original file line number Diff line number Diff line change
Expand Up @@ -3775,6 +3775,25 @@ var Gmail = function(localJQuery) {
return false;
};

/**
* Show a compose window
* @returns {boolean}
*/
api.compose.start_reply = function() {

//The compose button
var composeEl = $(".ams.bkH")[0];

if(composeEl) {
var click = document.createEvent("MouseEvents");
click.initEvent( "click", true, false );
composeEl.dispatchEvent(click);

return true;
}
return false;
};

/**
* Shadow API commands specifically made to interact with old gmail.
* (And in the future we can either remove "regular" api.get or replace it with something else)
Expand Down

0 comments on commit afe54fe

Please sign in to comment.