Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
update
  • Loading branch information
peter-mw committed Sep 20, 2022
1 parent 5fe6a43 commit f20abf3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions userfiles/modules/tags/edit_tagging_tag.php
Expand Up @@ -78,7 +78,10 @@

function getTagButtonHtmlInForm(id,name,slug) {

var html = '<div class="btn-group tag mb-2 mr-1 btn-tag-id-'+id+'" role="group">' +
// remove html from string before display
name = $('<p>' + name + '</p>').text();

var html = '<div class="btn-group tag mb-2 mr-1 btn-tag-id-'+id+'" role="group">' +
' <button type="button" class="btn-sm icon-left no-hover btn btn-secondary" onClick="editTaggingTagReplaceForm('+id+')"><i class="mdi mdi-tag"></i> ' + name + '</button>' +
' <button type="button" class="btn btn-primary btn-sm btn-icon" onClick="editTaggingTagReplaceForm('+id+')"><i class="mdi mdi-pencil"></i></button>' +
' <button type="button" class="btn btn-primary btn-sm btn-icon" onClick="deleteTaggingTag('+id+')"><i class="mdi mdi-close"></i></button>' +
Expand Down Expand Up @@ -139,4 +142,4 @@ function editTaggingTagReplaceForm(tagging_tag_id) {

<div class="js-admin-tag-edit-messages" style="padding-top: 15px"></div>

<div class="js-admin-tags mt-3"></div>
<div class="js-admin-tags mt-3"></div>

0 comments on commit f20abf3

Please sign in to comment.