diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-30 23:25:05 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-30 23:25:05 -0500 |
| commit | 2c063f920983c2b8b4584a21471c70521a391009 (patch) | |
| tree | 2f1ba5b12c57163c4995e2383a3e66cd0492c6d8 | |
| parent | f6e7c07078252d72b0c7725350a83adfff740b99 (diff) | |
share links
| -rw-r--r-- | StoneIsland/www/js/lib/blogs/HubView.js | 5 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/products/ProductView.js | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/StoneIsland/www/js/lib/blogs/HubView.js b/StoneIsland/www/js/lib/blogs/HubView.js index a6ae958e..001b8161 100644 --- a/StoneIsland/www/js/lib/blogs/HubView.js +++ b/StoneIsland/www/js/lib/blogs/HubView.js @@ -4,6 +4,7 @@ var HubView = ScrollableView.extend({ template: $("#hub .template").html(), events: { + "click .share": "content-share", "click .store": "store_link", "click .gallery-left": "gallery_left", "click .gallery-right": "gallery_right", @@ -95,4 +96,8 @@ var HubView = ScrollableView.extend({ $(e.currentTarget).closest("hub_item").flickity('next') }, + share: function(){ + window.plugins.socialsharing.share( this.item['ModelNames'], null, null, "http://stoneisland.com/") + }, + })
\ No newline at end of file diff --git a/StoneIsland/www/js/lib/products/ProductView.js b/StoneIsland/www/js/lib/products/ProductView.js index 92a0e0f7..d35f6385 100644 --- a/StoneIsland/www/js/lib/products/ProductView.js +++ b/StoneIsland/www/js/lib/products/ProductView.js @@ -263,6 +263,7 @@ var ProductView = ScrollableView.extend({ }, share: function(){ + window.plugins.socialsharing.share( this.item['ModelNames'], null, null, "http://stoneisland.com/") }, }) |
