CC-3453 : Playlist

reworking inital playlist events to all use the new "on" delegation in jQuery.
fixing some out of date errors.
This commit is contained in:
Naomi Aro 2012-03-19 14:09:05 +01:00
parent b5f92dfa93
commit 9509c70595
4 changed files with 113 additions and 106 deletions

View file

@ -520,7 +520,7 @@ class Application_Model_Playlist {
throw $e;
}
return array("fadeIn"=> $fadeIn, "fadeOut"=> $fadeOut);
return array("fadeIn" => $fadeIn, "fadeOut" => $fadeOut);
}
public function setPlaylistfades($fadein, $fadeout) {
@ -536,11 +536,12 @@ class Application_Model_Playlist {
}
if (isset($fadeout)) {
Logging::log("Setting playlist fade out {$fadeout}");
$row = CcPlaylistcontentsQuery::create()
->filterByDbPlaylistId($this->id)
->filterByDbPosition($this->getSize()-1)
->findOne($this->con);
$this->changeFadeInfo($row->getDbId(), null, $fadeout);
}
}