diff --git a/src/webui/filters.html b/src/webui/filters.html index f717b96eb..7f4e1b682 100644 --- a/src/webui/filters.html +++ b/src/webui/filters.html @@ -1,7 +1,16 @@ \ No newline at end of file + + + \ No newline at end of file diff --git a/src/webui/scripts/client.js b/src/webui/scripts/client.js index a6fa7e68b..042abce59 100644 --- a/src/webui/scripts/client.js +++ b/src/webui/scripts/client.js @@ -177,6 +177,8 @@ window.addEvent('domready', function(){ $(f+"_filter").addClass("selectedFilter"); myTable.setFilter(f); ajaxfn(); + // Remember this via Cookie + Cookie.write('selected_filter', f); } }); diff --git a/src/webui/scripts/dynamicTable.js b/src/webui/scripts/dynamicTable.js index adf730ae2..00501f4d8 100644 --- a/src/webui/scripts/dynamicTable.js +++ b/src/webui/scripts/dynamicTable.js @@ -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;