Showing
3 changed files
with
6 additions
and
1 deletions
@@ -2233,7 +2233,12 @@ $(document).on('touchstart', '.collection', function(event) { | @@ -2233,7 +2233,12 @@ $(document).on('touchstart', '.collection', function(event) { | ||
2233 | } | 2233 | } |
2234 | 2234 | ||
2235 | if (code === 201) { | 2235 | if (code === 201) { |
2236 | - window.location = data.data; | 2236 | + if ($('#collocation-link').length <= 0) { |
2237 | + $('body').append('<a href=\'' + data.data + '\' style="display:none;" id="collocation-link">' + | ||
2238 | + '<span class="collocation-link"></span></a>'); | ||
2239 | + } | ||
2240 | + | ||
2241 | + $('.collocation-link').click(); | ||
2237 | } | 2242 | } |
2238 | }, | 2243 | }, |
2239 | error: function() { | 2244 | error: function() { |
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
-
Please register or login to post a comment