765bddcad5fced8e78f73b28c45ceef98c1d6e6c
[wolnelektury.git] / src / funding / static / funding / funding.js
1 $(function() {
2     $('.funding .close').click(function(e) {\r
3         e.preventDefault();
4         var fundNode = $(e.target).parent();\r
5         fundNode.slideUp(function(){fundingHandle.show()});
6         if(Modernizr.localstorage)
7             localStorage['hide-offer-id'] = fundNode.attr('data-offer-id');\r
8     });
9
10     var fundingTopHeader = $('#funding-closeable');
11     var fundingHandle = $('#funding-handle');
12     fundingHandle.click(function(e) {
13         fundingTopHeader.slideDown();
14         $(e.target).hide();
15         if(Modernizr.localstorage)
16             localStorage.removeItem('hide-offer-id');
17     });\r
18 });