Mercurial > public > sg101
comparison downloads/static/js/downloads-get.js @ 1151:f56798c96ec2
WIP convert downloads to V3 design.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 13 Dec 2016 21:56:21 -0600 |
parents | ee87ea74d46b |
children |
comparison
equal
deleted
inserted
replaced
1150:0e0cd152b86d | 1151:f56798c96ec2 |
---|---|
16 dataType: 'json', | 16 dataType: 'json', |
17 success: function(result) { | 17 success: function(result) { |
18 var link_id = result.id; | 18 var link_id = result.id; |
19 var div = $('#link-' + link_id); | 19 var div = $('#link-' + link_id); |
20 div.hide(); | 20 div.hide(); |
21 div.addClass('success callout'); | |
21 div.html( | 22 div.html( |
22 'Thank you! Your download is now ready. <a href="' + result.url + | 23 'Thank you! Your download is now ready. <a href="' + result.url + |
23 '">Click here to download</a>.'); | 24 '">Click here to download</a>.'); |
24 div.fadeIn(3000); | 25 div.fadeIn(3000); |
25 }, | 26 }, |