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.findSelect.value('*');
pandora.$ui.findInput.value(value); pandora.$ui.findInput.value(value);
that.fadeOutScreen(); that.fadeOutScreen();
pandora.UI.set('find', { pandora.UI.set({
page: '',
find: {
conditions: value === '' conditions: value === ''
? [] ? []
: [{key: '*', value: value, operator: '='}], : [{key: '*', value: value, operator: '='}],
operator: '&' operator: '&'
}
}); });
} }
}) })