summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/controller/ShareController.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/controller/ShareController.js b/js/controller/ShareController.js
index eb056ce19..e1255e92a 100644
--- a/js/controller/ShareController.js
+++ b/js/controller/ShareController.js
@@ -158,4 +158,8 @@ app.controller('ShareController', function (ShareResource, Loading) {
this.getTwitterUrl = function(url){
return 'https://twitter.com/intent/tweet?url='+url;
};
+
+ this.getEmailUrl = function(url, object, body){
+ return encodeURI('mailto:?subject=' + object + '&body=' + body + ' ' + url);
+ };
});