},
sendEmail: function (url, context) {
- window.location = 'mailto:?subject=' + encodeURIComponent(this.getEmailSubject(url, context)) + '&body=' + encodeURIComponent(this.getEmailBody(url, context));
+ var subject = encodeURIComponent(this.getEmailSubject(url, context));
+ var body = encodeURIComponent(this.getEmailBody(url, context));
+
+ var mailtoParams = [];
+ if (subject !== '') {
+ mailtoParams.push('subject=' + subject);
+ }
+ if (body !== '') {
+ mailtoParams.push('body=' + body);
+ }
+ var mailto = 'mailto:?' + mailtoParams.join('&');
+ window.location = mailto;
this.fluidbook.stats.track(5);
},
sendTwitter: function (url, context) {