mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 17:59:21 +02:00
Starting review of editing object through dialog box.
This commit is contained in:
parent
73d9b3c523
commit
727e8ea9b6
7 changed files with 273 additions and 68 deletions
|
@ -103,41 +103,3 @@ function check_inline_song_edit(type, song) {
|
|||
}
|
||||
}
|
||||
|
||||
function showAddTagSlideout(elm) {
|
||||
$(elm).show('slide', 500);
|
||||
}
|
||||
|
||||
function closeAddTagSlideout(elm) {
|
||||
$(elm).hide('slide', 500);
|
||||
}
|
||||
|
||||
function saveTag(id, type, path) {
|
||||
var tagName = $('#dialog_tag_item_tag_name_'+id).val();
|
||||
if (tagName != null || tagName != '') {
|
||||
ajaxPut(path + '/server/ajax.server.php?page=tag&action=add_tag_by_name&type=' + type + '&object_id=' + id + '&tag_name=' + tagName);
|
||||
}
|
||||
$('#dialog_tag_item_tag_name').val('');
|
||||
$('#dialog_tag_item_' + id).hide('slide', 500);
|
||||
$('#np_song_tags_' + id).append('<a href="javascript:void(0);" class="hover-remove tag_size2">' + tagName + '</a>')
|
||||
}
|
||||
|
||||
function showAddTagDialog(id, type, path) {
|
||||
$('#dialog_tag_item').dialog({
|
||||
modal: true,
|
||||
buttons: [
|
||||
{
|
||||
title: "Tag",
|
||||
text: 'ok',
|
||||
click: function () {
|
||||
var tagName = $('#dialog_tag_item_tag_name').val();
|
||||
if (tagName != null || tagName != '') {
|
||||
ajaxPut(path + '/server/ajax.server.php?page=tag&action=add_tag_by_name&type=' + type + '&object_id=' + id + '&tag_name=' + tagName);
|
||||
}
|
||||
$('#dialog_tag_item_tag_name').val('');
|
||||
$(this).dialog('close');
|
||||
}
|
||||
}
|
||||
]
|
||||
}).show();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue