Christophe Dumez
15 years ago
3 changed files with 17 additions and 3 deletions
@ -1,7 +1,16 @@ |
|||||||
<ul> |
<ul> |
||||||
<li class="selectedFilter" id="all_filter"><a href="#" onclick="setFilter('all');"><img src="images/skin/filterall.png"/>_(All)</a></li> |
<li id="all_filter"><a href="#" onclick="setFilter('all');"><img src="images/skin/filterall.png"/>_(All)</a></li> |
||||||
<li id="downloading_filter"><a href="#" onclick="setFilter('downloading');"><img src="images/skin/downloading.png"/>_(Downloading)</a></li> |
<li id="downloading_filter"><a href="#" onclick="setFilter('downloading');"><img src="images/skin/downloading.png"/>_(Downloading)</a></li> |
||||||
<li id="completed_filter"><a href="#" onclick="setFilter('completed');"><img src="images/skin/uploading.png"/>_(Completed)</a></li> |
<li id="completed_filter"><a href="#" onclick="setFilter('completed');"><img src="images/skin/uploading.png"/>_(Completed)</a></li> |
||||||
<li id="active_filter"><a href="#" onclick="setFilter('active');"><img src="images/skin/filteractive.png"/>_(Active)</a></li> |
<li id="active_filter"><a href="#" onclick="setFilter('active');"><img src="images/skin/filteractive.png"/>_(Active)</a></li> |
||||||
<li id="inactive_filter"><a href="#" onclick="setFilter('inactive');"><img src="images/skin/filterinactive.png"/>_(Inactive)</a></li> |
<li id="inactive_filter"><a href="#" onclick="setFilter('inactive');"><img src="images/skin/filterinactive.png"/>_(Inactive)</a></li> |
||||||
</ul> |
</ul> |
||||||
|
|
||||||
|
<script type="text/javascript"> |
||||||
|
// Remember this via Cookie |
||||||
|
var last_filter = Cookie.read('selected_filter'); |
||||||
|
if(!$defined(last_filter)) { |
||||||
|
last_filter = 'all'; |
||||||
|
} |
||||||
|
$(last_filter+'_filter').addClass('selectedFilter'); |
||||||
|
</script> |
Loading…
Reference in new issue