From 28ac401988d78c140cd86a7fbfa3efaf1968268e Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 30 Jun 2012 11:56:37 +0000 Subject: [PATCH] fix pandora.UI.reset --- static/js/pandora/UI.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/static/js/pandora/UI.js b/static/js/pandora/UI.js index aa7bb9b68..ea2730b48 100644 --- a/static/js/pandora/UI.js +++ b/static/js/pandora/UI.js @@ -16,11 +16,8 @@ pandora.UI = (function() { return !key ? self.previousUI : self.previousUI[key]; }; - that.reset = 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); + that.reset = function(callback) { + pandora.api.resetUI({}, callback); }; // sets pandora.user.ui.key to val