1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-04 02:09:23 +02:00

added new album option on song edit (Thx Picasso)

This commit is contained in:
Karl 'vollmerk' Vollmer 2007-12-25 07:47:52 +00:00
parent 15f3664049
commit d6003655a9
5 changed files with 48 additions and 4 deletions

View file

@ -76,3 +76,13 @@ function popup_art(url) {
newwindow=window.open(url, "ampache_art", "menubar=no,toolbar=no,location=no,directories=no");
if (window.focus) {newwindow.focus()}
}
// In-line album editing helper function
function checkAlbum(song) {
if ($('album_select_'+song).options[$('album_select_'+song).selectedIndex].value == -1) {
$('album_select_song_'+song).innerHTML = '<input type="textbox" name="album_name" value="New Album" />';
} else {
$('album_select_song_'+song).innerHTML = '';
}
}