set new link on side playlist.

This commit is contained in:
naomiaro 2010-12-22 10:27:05 -05:00
parent 4e7b3ce86b
commit 498a8c6823
2 changed files with 11 additions and 1 deletions

View File

@ -1,6 +1,14 @@
<form name="SPL">
<div>
<span id="spl_new">New</span>
<span id="spl_new">
<a href="<?php echo $this->url(
array(
'controller' => 'Playlist',
'action' => 'new'
),
'default',
true) ?>">New</a>
</span>
<span id="spl_delete">Delete</span>
<div>
<div id="spl_name"><?php if (isset($this->pl)) { echo $this->pl->getName(); } ?></div>

View File

@ -9,6 +9,8 @@ function setSPLContent(json) {
return;
}
$('input[name="all"]').attr("checked", false);
$('#spl_name').empty()
.append(json.name);
$('#spl_length').empty()