- Remember selected filter using a Cookie (Web UI)

This commit is contained in:
Christophe Dumez 2009-12-04 21:03:50 +00:00
parent f9a5afe446
commit f0a18ec1f5
3 changed files with 17 additions and 3 deletions

View file

@ -42,7 +42,10 @@ var dynamicTable = new Class ({
this.cur = new Array();
this.priority_hidden = false;
this.progressIndex = progressIndex;
this.filter = 'all';
this.filter = Cookie.read('selected_filter');
if(!$defined(this.filter)) {
this.filter = 'all';
}
this.context_menu = context_menu;
this.table.sortedIndex = 1; // Default is NAME
this.table.reverseSort = false;