fix a bug where after clicking find on home screen, the URL would remain /home

This commit is contained in:
rolux 2011-12-21 16:12:27 +00:00
parent e965ae21c2
commit e86d25fd55

View file

@ -110,11 +110,14 @@ pandora.ui.home = function() {
pandora.$ui.findSelect.value('*');
pandora.$ui.findInput.value(value);
that.fadeOutScreen();
pandora.UI.set('find', {
conditions: value === ''
? []
: [{key: '*', value: value, operator: '='}],
operator: '&'
pandora.UI.set({
page: '',
find: {
conditions: value === ''
? []
: [{key: '*', value: value, operator: '='}],
operator: '&'
}
});
}
})