Module: deluge Branch: master Commit: 0f12200f6fd214377f3ca7def3efe40af03f8955
Author: Damien Churchill <[email protected]> Date: Wed Apr 28 15:33:05 2010 +0100 store the states as a dictionary --- deluge/ui/web/js/deluge-all/FilterPanel.js | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/deluge/ui/web/js/deluge-all/FilterPanel.js b/deluge/ui/web/js/deluge-all/FilterPanel.js index de20cb7..0010a0c 100644 --- a/deluge/ui/web/js/deluge-all/FilterPanel.js +++ b/deluge/ui/web/js/deluge-all/FilterPanel.js @@ -110,7 +110,11 @@ Deluge.FilterPanel = Ext.extend(Ext.Panel, { * Update the states in the FilterPanel */ updateStates: function(states) { - this.states = states; + this.states = {}; + Ext.each(states, function(state) { + this.states[state[0]] = state[1]; + }, this); + var show_zero = (this.show_zero == null) ? deluge.config.sidebar_show_zero : this.show_zero; if (!show_zero) { var newStates = []; -- 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.
