From 0fe19ae166fda84bc7c60bcd368f85eb3082f23a Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 30 Jun 2012 20:01:43 +0000 Subject: [PATCH] make 'reset ui' somewhat more functional --- static/js/pandora/UI.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/UI.js b/static/js/pandora/UI.js index ea2730b48..c38042f63 100644 --- a/static/js/pandora/UI.js +++ b/static/js/pandora/UI.js @@ -16,8 +16,15 @@ pandora.UI = (function() { return !key ? self.previousUI : self.previousUI[key]; }; - that.reset = function(callback) { - pandora.api.resetUI({}, callback); + that.reset = function() { + pandora.api.resetUI({}, function() { + pandora.user.ui = pandora.site.user.ui; + pandora.user.ui._list = pandora.getListState(pandora.user.ui.find); + pandora.user.ui._filterState = pandora.getFilterState(pandora.user.ui.find); + pandora.user.ui._findState = pandora.getFindState(pandora.user.ui.find); + Ox.Theme(pandora.user.ui.theme); + pandora.$ui.appPanel.reload(); + }); }; // sets pandora.user.ui.key to val