CC-5139 : WaveForm: Click save will cause problem when setting crossfading between track and Smart block
This commit is contained in:
parent
298e5a9b77
commit
d9b6a15fb6
|
@ -421,8 +421,8 @@ class PlaylistController extends Zend_Controller_Action
|
|||
|
||||
public function setCrossfadeAction()
|
||||
{
|
||||
$id1 = $this->_getParam('id1');
|
||||
$id2 = $this->_getParam('id2');
|
||||
$id1 = $this->_getParam('id1', null);
|
||||
$id2 = $this->_getParam('id2', null);
|
||||
$type = $this->_getParam('type');
|
||||
$fadeIn = $this->_getParam('fadeIn', 0);
|
||||
$fadeOut = $this->_getParam('fadeOut', 0);
|
||||
|
|
|
@ -688,8 +688,12 @@ SQL;
|
|||
$this->con->beginTransaction();
|
||||
|
||||
try {
|
||||
$this->changeFadeInfo($id1, null, $fadeOut);
|
||||
$this->changeFadeInfo($id2, $fadeIn, null, $offset);
|
||||
if (isset($id1)) {
|
||||
$this->changeFadeInfo($id1, null, $fadeOut);
|
||||
}
|
||||
if (isset($id2)) {
|
||||
$this->changeFadeInfo($id2, $fadeIn, null, $offset);
|
||||
}
|
||||
|
||||
$this->con->commit();
|
||||
|
||||
|
|
|
@ -670,8 +670,12 @@ SQL;
|
|||
$this->con->beginTransaction();
|
||||
|
||||
try {
|
||||
$this->changeFadeInfo($id1, null, $fadeOut);
|
||||
$this->changeFadeInfo($id2, $fadeIn, null, $offset);
|
||||
if (isset($id1)) {
|
||||
$this->changeFadeInfo($id1, null, $fadeOut);
|
||||
}
|
||||
if (isset($id2)) {
|
||||
$this->changeFadeInfo($id2, $fadeIn, null, $offset);
|
||||
}
|
||||
|
||||
$this->con->commit();
|
||||
|
||||
|
|
|
@ -1254,7 +1254,10 @@ var AIRTIME = (function(AIRTIME){
|
|||
fadeIn = fade["end"] - fade["start"];
|
||||
}
|
||||
|
||||
changeCrossfade($html, id1, id2, fadeIn.toFixed(1), fadeOut.toFixed(1), offset);
|
||||
fadeIn = (fadeIn === undefined) ? undefined : fadeIn.toFixed(1);
|
||||
fadeOut = (fadeOut === undefined) ? undefined : fadeOut.toFixed(1);
|
||||
|
||||
changeCrossfade($html, id1, id2, fadeIn, fadeOut, offset);
|
||||
}}
|
||||
],
|
||||
open: function (event, ui) {
|
||||
|
|
Loading…
Reference in New Issue