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

eliminate a null tag possbility

This commit is contained in:
John Moore 2013-07-25 20:54:41 -05:00
parent 09e09523af
commit 4a0a737e32

View file

@ -105,6 +105,8 @@ function check_inline_song_edit(type, song) {
function showAddTagDialog(id, type, path) {
var tagName = window.prompt('Enter Tag:', '');
var url = path + '/server/ajax.server.php?page=tag&action=add_tag_by_name&type=' + type + '&object_id=' + id + '&tag_name=' + tagName;
ajaxPut(url);
if (tagName != null || tagName != '') {
ajaxPut(url);
}
}