|
Lines 113-119
Link Here
|
| 113 |
<strong>Show year: </strong> |
113 |
<strong>Show year: </strong> |
| 114 |
[% FOREACH year IN years %] |
114 |
[% FOREACH year IN years %] |
| 115 |
[% IF ( year.year ) %] |
115 |
[% IF ( year.year ) %] |
| 116 |
<a class="tabsubs" href="#" onclick="showlayer([% year.year | html %]); return false;">[% year.year | html %]</a> |
116 |
<a class="tabsubs" href="#" data-year="[% year.year | html %]">[% year.year | html %]</a> |
| 117 |
[% END %] |
117 |
[% END %] |
| 118 |
[% END %] |
118 |
[% END %] |
| 119 |
</div> |
119 |
</div> |
|
Lines 200-208
Link Here
|
| 200 |
$("#reset").click(function(){ |
200 |
$("#reset").click(function(){ |
| 201 |
clearFilters(); |
201 |
clearFilters(); |
| 202 |
}); |
202 |
}); |
| 203 |
$("a.tabsubs").click(function(){ |
203 |
$("a.tabsubs").on("click", function(e){ |
|
|
204 |
e.preventDefault(); |
| 205 |
let year = $(this).data("year"); |
| 204 |
$("a.tabsubs").removeClass("currentsubtab"); |
206 |
$("a.tabsubs").removeClass("currentsubtab"); |
| 205 |
$(this).addClass("currentsubtab"); |
207 |
$(this).addClass("currentsubtab"); |
|
|
208 |
showlayer( year ); |
| 206 |
}); |
209 |
}); |
| 207 |
$(".subscriptionstclass").dataTable($.extend(true, {}, dataTablesDefaults, { |
210 |
$(".subscriptionstclass").dataTable($.extend(true, {}, dataTablesDefaults, { |
| 208 |
"order": [[ 0, "desc" ]] |
211 |
"order": [[ 0, "desc" ]] |
| 209 |
- |
|
|