mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 09:49:30 +02:00
This commit is contained in:
parent
e2b3b1ed51
commit
5f5460708a
31 changed files with 226 additions and 238 deletions
|
@ -143,7 +143,13 @@ function handleBroadcastAction(url, id) {
|
|||
/* Edit modal dialog for artists, albums and songs */
|
||||
/***************************************************/
|
||||
|
||||
function showEditDialog(edit_type, edit_id, edit_form_id, edit_title, edit_tag_choices, refresh_row_prefix, refresh_action) {
|
||||
var tag_choices;
|
||||
|
||||
function setTagsChoices(choices) {
|
||||
tag_choices = choices;
|
||||
}
|
||||
|
||||
function showEditDialog(edit_type, edit_id, edit_form_id, edit_title, refresh_row_prefix, refresh_action) {
|
||||
var parent = this;
|
||||
parent.editFormId = 'form#' + edit_form_id;
|
||||
parent.contentUrl = jsAjaxServer + '/show_edit.server.php?action=show_edit_object&id=' + edit_id + '&type=' + edit_type;
|
||||
|
@ -155,8 +161,8 @@ function showEditDialog(edit_type, edit_id, edit_form_id, edit_title, edit_tag_c
|
|||
|
||||
// Convert choices string ("tag0,tag1,tag2,...") to choices array
|
||||
parent.editTagChoices = new Array();
|
||||
if (edit_tag_choices != null && edit_tag_choices != '') {
|
||||
var splitted = edit_tag_choices.split(',');
|
||||
if (tag_choices != null && tag_choices != '') {
|
||||
var splitted = tag_choices.split(',');
|
||||
var i;
|
||||
for (i = 0; i < splitted.length; ++i) {
|
||||
parent.editTagChoices.push($.trim(splitted[i]));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue