fix pandora.UI.reset
This commit is contained in:
parent
fb195b3799
commit
28ac401988
1 changed files with 2 additions and 5 deletions
|
@ -16,11 +16,8 @@ pandora.UI = (function() {
|
||||||
return !key ? self.previousUI : self.previousUI[key];
|
return !key ? self.previousUI : self.previousUI[key];
|
||||||
};
|
};
|
||||||
|
|
||||||
that.reset = function() {
|
that.reset = function(callback) {
|
||||||
pandora.user.ui = pandora.site.user.ui;
|
pandora.api.resetUI({}, callback);
|
||||||
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);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// sets pandora.user.ui.key to val
|
// sets pandora.user.ui.key to val
|
||||||
|
|
Loading…
Reference in a new issue