some more fixes

This commit is contained in:
rlx 2011-08-19 20:38:19 +00:00
parent 9e83873c0b
commit 96d2c7f89b
2 changed files with 5 additions and 0 deletions

View file

@ -109,6 +109,9 @@ pandora.URL = (function() {
update: function() { update: function() {
var oldUserUI = Ox.clone(pandora.user.ui); var oldUserUI = Ox.clone(pandora.user.ui);
Ox.Request.cancel(); Ox.Request.cancel();
$('video').each(function() {
$(this).trigger('ended');
});
this.parse(); this.parse();
if (pandora.user.ui.section != oldUserUI.section) { if (pandora.user.ui.section != oldUserUI.section) {
pandora.$ui.appPanel.replaceElement(1, pandora.$ui.mainPanel = pandora.ui.mainPanel()); pandora.$ui.appPanel.replaceElement(1, pandora.$ui.mainPanel = pandora.ui.mainPanel());

View file

@ -268,6 +268,8 @@ pandora.ui.list = function() { // fixme: remove view argument
$video.addClass('OxSelectedVideo'); $video.addClass('OxSelectedVideo');
}, 300); }, 300);
} }
} else {
$('.OxSelectedVideo').removeClass('OxSelectedVideo');
} }
} }
}); });