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

replaced dialog with slide out

This commit is contained in:
John Moore 2013-11-19 20:23:35 -06:00
parent 5643d26436
commit 72a149ab4a
2 changed files with 24 additions and 18 deletions

View file

@ -106,22 +106,22 @@ function saveTag(id, type, path) {
}
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();
$('#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();
}