initial commit
[CPE_learningsite] / CPE / CPE.App / CPE.App.Web / static / js / index / getticket.js
1 $(document).ready(function () {
2     $.post(link, function (data) {
3         win = window.open(data);
4         if (win && win.open && !win.closed) win.close();
5     });
6     $('.btnGetLink').click(function() {
7         var url = "/getTicket/";
8         url += $(this).data('pcode');
9         url += "-";
10         url += $(this).data('rcode');
11         $.post(url, function(data) {
12             win = window.open(data);
13             if (win && win.open && !win.closed) win.close();
14         });
15     });
16 })