$('.autodoc_tag_delete').click(function (e) { | $('.autodoc_tag_delete').click(function (e) { | ||||
var tagId = $('.autodoc_tag_id').val(); | var tagId = $('.autodoc_tag_id').val(); | ||||
if (tag != "") { | |||||
if (tagId != "") { | |||||
$.ajax({ | $.ajax({ | ||||
type: "DELETE", | type: "DELETE", | ||||
url: conf.openapi + "/tags/" + tagId, | url: conf.openapi + "/tags/" + tagId, |