Temp commit.
It's not done, need to work more later.
This commit is contained in:
parent
7a40161e7e
commit
bf34170f29
4 changed files with 16 additions and 1 deletions
|
@ -173,6 +173,7 @@ class PlaylistController extends Zend_Controller_Action
|
||||||
$this->view->html = $this->view->render('playlist/update.phtml');
|
$this->view->html = $this->view->render('playlist/update.phtml');
|
||||||
$this->view->name = $pl->getName();
|
$this->view->name = $pl->getName();
|
||||||
$this->view->length = $pl->getLength();
|
$this->view->length = $pl->getLength();
|
||||||
|
$this->view->pl_id = $pl->getid();
|
||||||
|
|
||||||
unset($this->view->pl);
|
unset($this->view->pl);
|
||||||
return;
|
return;
|
||||||
|
@ -218,8 +219,11 @@ class PlaylistController extends Zend_Controller_Action
|
||||||
$this->view->html = $this->view->render('playlist/update.phtml');
|
$this->view->html = $this->view->render('playlist/update.phtml');
|
||||||
$this->view->name = $pl->getName();
|
$this->view->name = $pl->getName();
|
||||||
$this->view->length = $pl->getLength();
|
$this->view->length = $pl->getLength();
|
||||||
|
$this->view->pl_id = $pl->getid();
|
||||||
|
|
||||||
unset($this->view->pl);
|
unset($this->view->pl);
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setCueAction()
|
public function setCueAction()
|
||||||
|
|
|
@ -371,7 +371,7 @@ class Playlist {
|
||||||
->computeLength();
|
->computeLength();
|
||||||
|
|
||||||
if(is_null($res))
|
if(is_null($res))
|
||||||
return '00:00:00.000000';
|
return '00:00:00';
|
||||||
|
|
||||||
return $res;
|
return $res;
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,6 +95,9 @@ function dtRowCallback( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
|
||||||
|
|
||||||
$(nRow).attr("id", type+'_'+id);
|
$(nRow).attr("id", type+'_'+id);
|
||||||
|
|
||||||
|
// insert id on lenth field
|
||||||
|
$('td:eq(4)', nRow).attr("id", "length");
|
||||||
|
|
||||||
$('td:eq(5) img', nRow).qtip({
|
$('td:eq(5) img', nRow).qtip({
|
||||||
|
|
||||||
content: {
|
content: {
|
||||||
|
|
|
@ -259,6 +259,10 @@ function setSPLContent(json) {
|
||||||
//$(".spl_playlength").click(openCueEditor);
|
//$(".spl_playlength").click(openCueEditor);
|
||||||
$(".spl_cue").click(openCueEditor);
|
$(".spl_cue").click(openCueEditor);
|
||||||
|
|
||||||
|
//Update length on library list
|
||||||
|
$("#pl_"+json.pl_id).children("#length").empty().append(json.length);
|
||||||
|
//var pos = dt.fnGetPosition($("#pl_"+json.pl_id));
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -360,6 +364,10 @@ function createPlaylistMetaForm(json) {
|
||||||
$.post(url, data, function(json){
|
$.post(url, data, function(json){
|
||||||
openDiffSPL(json);
|
openDiffSPL(json);
|
||||||
})
|
})
|
||||||
|
|
||||||
|
//redraw the library list
|
||||||
|
dt = $("#library_display").dataTable();
|
||||||
|
dt.fnDraw();
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#side_playlist")
|
$("#side_playlist")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue