Author: damoxc

Revision: 4891

Log:
        implement updating the filters

Diff:
Modified: trunk/deluge/ui/web/js/deluge-bars.js
===================================================================
--- trunk/deluge/ui/web/js/deluge-bars.js       2009-03-20 08:57:36 UTC (rev 
4890)
+++ trunk/deluge/ui/web/js/deluge-bars.js       2009-03-20 09:22:57 UTC (rev 
4891)
@@ -357,11 +357,18 @@
        update: function(filters) {
                $each(filters, function(states, filter) {
                        if (this.panels.has(filter)) {
-                               
+                               this.updateFilter(filter, states);
                        } else {
                                this.createFilter(filter, states);
                        }
                }, this);
+               
+               // Perform a cleanup of fitlers that aren't enabled
+               $each(this.panels.getKeys(), function(filter) {
+                       if (!fitlers.has(filter)) {
+                               // We need to remove the panel
+                       }
+               });
        },
        
        createFilter: function(filter, states) {
@@ -405,7 +412,7 @@
        },
        
        updateFilter: function(filter, states) {
-               
+               this.panels[filter].store.loadData(states);
        }
 };
 



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to