Browse Source

delete tags

master
Pascal Gloor 5 years ago
parent
commit
db5de5d0a8
1 changed files with 15 additions and 0 deletions
  1. 15
    0
      www/js/autodoc.js

+ 15
- 0
www/js/autodoc.js View File

@@ -126,6 +126,21 @@ $(document).ready(function () {
});
});

$('.autodoc_tag_delete').click(function(e) {
var tagId = $('.autodoc_tag_id').val();

if ( tag != "" ) {
$.ajax({
type: "DELETE",
url = conf.openapi + "/tags/" + tagId,
success: function() { location.reload(); }
});
}
else {
location.reload();
}
});

// tag add color events
$('.autodoc_tag_color').click(function (e) {
var btn = e.target;

Loading…
Cancel
Save