|
49 | 49 |
|
50 | 50 | $window.open( |
51 | 51 | '//www.facebook.com/sharer/sharer.php?u=' + encodeURIComponent(data.url) |
52 | | - ,'sharer', 'toolbar=0,status=0,width=' + data.popupWidth + ',height=' + data.popupHeight); |
| 52 | + , 'sharer', 'toolbar=0,status=0,width=' + data.popupWidth + ',height=' + data.popupHeight); |
53 | 53 | }; |
54 | 54 |
|
55 | 55 | $scope.twitterShare = function manageTwitterShare (data) { |
|
81 | 81 |
|
82 | 82 | $window.open( |
83 | 83 | '//plus.google.com/share?url=' + encodeURIComponent(data.url) |
84 | | - ,'sharer', 'toolbar=0,status=0,width=' + data.popupWidth + ',height=' + data.popupHeight); |
| 84 | + , 'sharer', 'toolbar=0,status=0,width=' + data.popupWidth + ',height=' + data.popupHeight); |
85 | 85 | }; |
86 | 86 |
|
87 | 87 | $scope.redditShare = function manageRedditShare (data) { |
88 | 88 |
|
89 | 89 | $window.open( |
90 | 90 | '//www.reddit.com/submit?url=' + encodeURIComponent(data.url) + '&title=' + encodeURI(data.text) |
91 | | - ,'sharer', 'toolbar=0,status=0,width=' + data.popupWidth + ',height=' + data.popupHeight); |
| 91 | + , 'sharer', 'toolbar=0,status=0,width=' + data.popupWidth + ',height=' + data.popupHeight); |
92 | 92 | }; |
93 | 93 |
|
94 | 94 | $scope.stumbleuponShare = function manageStumbleuponShare (data) { |
95 | 95 |
|
96 | 96 | $window.open( |
97 | 97 | '//www.stumbleupon.com/submit?url=' + encodeURIComponent(data.url) + '&title=' + encodeURI(data.text) |
98 | | - ,'sharer', 'toolbar=0,status=0,width=' + data.popupWidth + ',height=' + data.popupHeight); |
| 98 | + , 'sharer', 'toolbar=0,status=0,width=' + data.popupWidth + ',height=' + data.popupHeight); |
99 | 99 | }; |
100 | 100 |
|
101 | 101 | $scope.linkedinShare = function manageLinkedinShare (data) { |
102 | 102 |
|
103 | 103 | $window.open( |
104 | 104 | '//www.linkedin.com/shareArticle?mini=true&url=' + encodeURIComponent(data.url) + '&title=' + encodeURI(data.text) |
105 | | - ,'sharer', 'toolbar=0,status=0,width=' + data.popupWidth + ',height=' + data.popupHeight); |
| 105 | + , 'sharer', 'toolbar=0,status=0,width=' + data.popupWidth + ',height=' + data.popupHeight); |
106 | 106 | }; |
107 | 107 |
|
108 | 108 | $scope.pinterestShare = function managePinterestShare (data) { |
109 | 109 |
|
110 | 110 | $window.open( |
111 | 111 | '//www.pinterest.com/pin/create/button/?url=' + encodeURIComponent(data.url) + '&media=' + encodeURI(data.media) + '&description=' + encodeURI(data.text) |
112 | | - ,'sharer', 'toolbar=0,status=0,width=' + data.popupWidth + ',height=' + data.popupHeight); |
| 112 | + , 'sharer', 'toolbar=0,status=0,width=' + data.popupWidth + ',height=' + data.popupHeight); |
113 | 113 | }; |
114 | 114 |
|
115 | 115 | $scope.diggShare = function manageDiggShare (data) { |
116 | 116 |
|
117 | 117 | $window.open( |
118 | 118 | '//www.digg.com/submit?url=' + encodeURIComponent(data.url) + '&title=' + encodeURI(data.text) |
119 | | - ,'sharer', 'toolbar=0,status=0,width=' + data.popupWidth + ',height=' + data.popupHeight); |
| 119 | + , 'sharer', 'toolbar=0,status=0,width=' + data.popupWidth + ',height=' + data.popupHeight); |
120 | 120 | }; |
121 | 121 |
|
122 | 122 | $scope.tumblrShare = function manageTumblrShare (data) { |
123 | 123 | //tumblr doesnt likes http:// or https:// actually its a mistery |
124 | 124 | $window.open( |
125 | 125 | '//www.tumblr.com/share/link?url=' + encodeURIComponent(data.url.replace('http://', '').replace('https://')) + '&description=' + encodeURI(data.text) |
126 | | - ,'sharer', 'toolbar=0,status=0,width=' + data.popupWidth + ',height=' + data.popupHeight); |
| 126 | + , 'sharer', 'toolbar=0,status=0,width=' + data.popupWidth + ',height=' + data.popupHeight); |
127 | 127 | }; |
128 | 128 |
|
129 | 129 | $scope.vkShare = function manageVkShare (data) { |
130 | 130 |
|
131 | 131 | $window.open( |
132 | 132 | '//www.vk.com/share.php?url=' + encodeURIComponent(data.url) |
133 | | - ,'sharer', 'toolbar=0,status=0,width=' + data.popupWidth + ',height=' + data.popupHeight); |
| 133 | + , 'sharer', 'toolbar=0,status=0,width=' + data.popupWidth + ',height=' + data.popupHeight); |
134 | 134 | }; |
135 | 135 |
|
136 | 136 | $scope.deliciousShare = function manageDeliciousShare (data) { |
137 | 137 |
|
138 | 138 | $window.open( |
139 | 139 | '//www.delicious.com/save?v=5&noui&jump=close&url=' + encodeURIComponent(data.url) + '&title=' + encodeURI(data.text) |
140 | | - ,'sharer', 'toolbar=0,status=0,width=' + data.popupWidth + ',height=' + data.popupHeight); |
| 140 | + , 'sharer', 'toolbar=0,status=0,width=' + data.popupWidth + ',height=' + data.popupHeight); |
141 | 141 | }; |
142 | 142 |
|
143 | 143 | element.bind(properties.eventTrigger, function onEventTriggered() { |
|
0 commit comments