Skip to content

Commit

Permalink
Make tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Cobby committed Oct 10, 2012
1 parent 1f8840a commit f341d05
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions web/js/views/ShareBudgetPane.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,14 @@ TGM.Views.ShareBudgetPane = TGM.Views.SidePane.extend({
this.clip.setText(this.model.getShortUrl());
}

window.addthis.toolbox(this.$shareButtons[0], {}, {
url: this.model.getShortUrl(),
title: 'Check out my budget',
email_template: 'Budget_email',
email_vars: { ownership: 'their' }
});
if (window.addthis) {
window.addthis.toolbox(this.$shareButtons[0], {}, {
url: this.model.getShortUrl(),
title: 'Check out my budget',
email_template: 'Budget_email',
email_vars: { ownership: 'their' }
});
}
},

onBudgetUrlFocus: function()
Expand Down

0 comments on commit f341d05

Please sign in to comment.