Showing
1 changed file
with
6 additions
and
1 deletions
@@ -230,7 +230,12 @@ $('.add-intimacy').on('touchstart', function() { | @@ -230,7 +230,12 @@ $('.add-intimacy').on('touchstart', function() { | ||
230 | } | 230 | } |
231 | 231 | ||
232 | if (code === 201) { | 232 | if (code === 201) { |
233 | - window.location = data.data; | 233 | + if ($('#intimacy-link').length <= 0) { |
234 | + $('body').append('<a href="' + data.data + '" style="display:none;" id="intimacy-link">' + | ||
235 | + '<span class="intimacy-link"></span></a>'); | ||
236 | + } | ||
237 | + | ||
238 | + $('.intimacy-link').click(); | ||
234 | } | 239 | } |
235 | }, | 240 | }, |
236 | error: function() { | 241 | error: function() { |
-
Please register or login to post a comment