|
171 | 171 | }
|
172 | 172 |
|
173 | 173 | $window.open(
|
174 |
| - urlString + encodeURIComponent(data.url || $location.absUrl()) + '&title=' + encodeURI(data.text) |
| 174 | + urlString + encodeURIComponent(data.url || $location.absUrl()) + '&title=' + encodeURIComponent(data.text) |
175 | 175 | , 'sharer', 'toolbar=0,status=0,width=' + data.popupWidth + ',height=' + data.popupHeight);
|
176 | 176 | };
|
177 | 177 |
|
178 | 178 | $scope.stumbleuponShare = function manageStumbleuponShare(data) {
|
179 | 179 |
|
180 | 180 | $window.open(
|
181 |
| - 'https://www.stumbleupon.com/submit?url=' + encodeURIComponent(data.url || $location.absUrl()) + '&title=' + encodeURI(data.text) |
| 181 | + 'https://www.stumbleupon.com/submit?url=' + encodeURIComponent(data.url || $location.absUrl()) + '&title=' + encodeURIComponent(data.text) |
182 | 182 | , 'sharer', 'toolbar=0,status=0,width=' + data.popupWidth + ',height=' + data.popupHeight);
|
183 | 183 | };
|
184 | 184 |
|
185 | 185 | $scope.linkedinShare = function manageLinkedinShare(data) {
|
186 | 186 |
|
187 | 187 | $window.open(
|
188 |
| - 'https://www.linkedin.com/shareArticle?mini=true&url=' + encodeURIComponent(data.url || $location.absUrl()) + '&title=' + encodeURI(data.text) |
| 188 | + 'https://www.linkedin.com/shareArticle?mini=true&url=' + encodeURIComponent(data.url || $location.absUrl()) + '&title=' + encodeURIComponent(data.text) |
189 | 189 | , 'sharer', 'toolbar=0,status=0,width=' + data.popupWidth + ',height=' + data.popupHeight);
|
190 | 190 | };
|
191 | 191 |
|
192 | 192 | $scope.pinterestShare = function managePinterestShare(data) {
|
193 | 193 |
|
194 | 194 | $window.open(
|
195 |
| - 'https://www.pinterest.com/pin/create/button/?url=' + encodeURIComponent(data.url || $location.absUrl()) + '&media=' + encodeURI(data.media) + '&description=' + encodeURI(data.text) |
| 195 | + 'https://www.pinterest.com/pin/create/button/?url=' + encodeURIComponent(data.url || $location.absUrl()) + '&media=' + encodeURI(data.media) + '&description=' + encodeURIComponent(data.text) |
196 | 196 | , 'sharer', 'toolbar=0,status=0,width=' + data.popupWidth + ',height=' + data.popupHeight);
|
197 | 197 | };
|
198 | 198 |
|
199 | 199 | $scope.diggShare = function manageDiggShare(data) {
|
200 | 200 |
|
201 | 201 | $window.open(
|
202 |
| - 'https://www.digg.com/submit?url=' + encodeURIComponent(data.url || $location.absUrl()) + '&title=' + encodeURI(data.text) |
| 202 | + 'https://www.digg.com/submit?url=' + encodeURIComponent(data.url || $location.absUrl()) + '&title=' + encodeURIComponent(data.text) |
203 | 203 | , 'sharer', 'toolbar=0,status=0,width=' + data.popupWidth + ',height=' + data.popupHeight);
|
204 | 204 | };
|
205 | 205 |
|
|
209 | 209 | var urlString = 'https://www.tumblr.com/share/photo?source=' + encodeURIComponent(data.media);
|
210 | 210 |
|
211 | 211 | if (data.text) {
|
212 |
| - urlString += '&caption=' + encodeURI(data.text); |
| 212 | + urlString += '&caption=' + encodeURIComponent(data.text); |
213 | 213 | }
|
214 | 214 |
|
215 | 215 | $window.open(
|
|
218 | 218 | } else {
|
219 | 219 |
|
220 | 220 | $window.open(
|
221 |
| - 'https://www.tumblr.com/share/link?url=' + encodeURIComponent(data.url) + '&description=' + encodeURI(data.text) |
| 221 | + 'https://www.tumblr.com/share/link?url=' + encodeURIComponent(data.url) + '&description=' + encodeURIComponent(data.text) |
222 | 222 | , 'sharer', 'toolbar=0,status=0,width=' + data.popupWidth + ',height=' + data.popupHeight);
|
223 | 223 | }
|
224 | 224 | };
|
|
233 | 233 | $scope.deliciousShare = function manageDeliciousShare(data) {
|
234 | 234 |
|
235 | 235 | $window.open(
|
236 |
| - 'https://www.delicious.com/save?v=5&noui&jump=close&url=' + encodeURIComponent(data.url || $location.absUrl()) + '&title=' + encodeURI(data.text) |
| 236 | + 'https://www.delicious.com/save?v=5&noui&jump=close&url=' + encodeURIComponent(data.url || $location.absUrl()) + '&title=' + encodeURIComponent(data.text) |
237 | 237 | , 'sharer', 'toolbar=0,status=0,width=' + data.popupWidth + ',height=' + data.popupHeight);
|
238 | 238 | };
|
239 | 239 |
|
|
0 commit comments