Showing
1 changed file
with
6 additions
and
1 deletions
@@ -127,7 +127,12 @@ $(document).on('touchstart', '.collection', function(event) { | @@ -127,7 +127,12 @@ $(document).on('touchstart', '.collection', function(event) { | ||
127 | } | 127 | } |
128 | 128 | ||
129 | if (code === 201) { | 129 | if (code === 201) { |
130 | - window.location = data.data; | 130 | + if ($('#collocation-link').length <= 0) { |
131 | + $('body').append('<a href=\'' + data.data + '\' style="display:none;" id="collocation-link">' + | ||
132 | + '<span class="collocation-link"></span></a>'); | ||
133 | + } | ||
134 | + | ||
135 | + $('.collocation-link').click(); | ||
131 | } | 136 | } |
132 | }, | 137 | }, |
133 | error: function() { | 138 | error: function() { |
-
Please register or login to post a comment