correctly set find state when loading '/'

This commit is contained in:
rolux 2011-10-09 10:04:30 +00:00
commit 746efb3110
6 changed files with 27 additions and 15 deletions

View file

@ -78,7 +78,9 @@ pandora.ui.group = function(id) {
pandora.$ui.list.triggerEvent('paste', data);
},
select: function(data) {
// FIXME: cant index be an empty array, instead of -1?
// fixme: cant index be an empty array, instead of -1?
// FIXME: this is still incorrect when deselecting a group item
// makes a selected item in another group disappear
var conditions = data.ids.map(function(value) {
return {
key: id,

View file

@ -390,14 +390,7 @@ pandora.ui.infoView = function(data) {
}).join(', ');
}
$text.find('a').click(function(event) {
if (event.target.hostname == document.location.hostname) {
pandora.URL.push(event.target.pathname);
} else {
document.location.href = '/url=' + encodeURIComponent(event.target.href);
}
return false;
});
pandora.createLinks($text);
function renderList() {
pandora.api.get({