documentation seems weird, trying to get content to be rerquested for playlist contents.
This commit is contained in:
parent
c496546ec0
commit
d60e3e5476
|
@ -149,19 +149,17 @@ class LibraryController extends Zend_Controller_Action
|
|||
|
||||
public function getFileMetaDataAction()
|
||||
{
|
||||
//id = type_id
|
||||
$id = $this->_getParam('file');
|
||||
$id = $this->_getParam('id');
|
||||
$type = $this->_getParam('type');
|
||||
|
||||
$info = explode("_", $id);
|
||||
|
||||
if($info[0] == "au") {
|
||||
$file = StoredFile::Recall($info[1]);
|
||||
$this->view->type = $info[0];
|
||||
if($type == "au") {
|
||||
$file = StoredFile::Recall($id);
|
||||
$this->view->type = $type;
|
||||
$this->view->md = $file->md;
|
||||
}
|
||||
else if($info[0] == "pl") {
|
||||
$file = Playlist::Recall($info[1]);
|
||||
$this->view->type = $info[0];
|
||||
else if($type == "pl") {
|
||||
$file = Playlist::Recall($id);
|
||||
$this->view->type = $type;
|
||||
$this->view->md = $file->getAllPLMetaData();
|
||||
$this->view->contents = $file->getContents();
|
||||
}
|
||||
|
|
|
@ -60,16 +60,19 @@ function addLibraryItemEvents() {
|
|||
}
|
||||
|
||||
function dtRowCallback( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
|
||||
var id = aData[6].substring(0,2) + "_" + aData[0];
|
||||
var id, type, once;
|
||||
|
||||
$(nRow).attr("id", id);
|
||||
type = aData[6].substring(0,2);
|
||||
id = aData[0];
|
||||
|
||||
$(nRow).attr("id", type+'_'+id);
|
||||
|
||||
$(nRow).qtip({
|
||||
|
||||
content: {
|
||||
// Set the text to an image HTML string with the correct src URL to the loading image you want to use
|
||||
//text: '<img class="throbber" src="/projects/qtip/images/throbber.gif" alt="Loading..." />',
|
||||
url: '/Library/get-file-meta-data/format/html/file/'+id, // Use the rel attribute of each element for the url to load
|
||||
url: '/Library/get-file-meta-data',
|
||||
type: 'post',
|
||||
data: ({format: "html", id : id, type: type}),
|
||||
title: {
|
||||
text: aData[1] + ' MetaData',
|
||||
button: 'Close' // Show a close link in the title
|
||||
|
|
Loading…
Reference in New Issue