fixed #1883 Cancel btn closes tag popin now

This commit is contained in:
MatthieuLP 2023-04-19 11:50:22 +02:00
parent daf2478dff
commit 056b597cd2

View file

@ -229,7 +229,6 @@ function setupTagbox(tagBox) {
//Edit Name //Edit Name
tagBox.find('.dropdown-option.edit').on('click', function() { tagBox.find('.dropdown-option.edit').on('click', function() {
console.log('SALUT');
set_up_popin(tagBox.data('id'), tagBox.find('.tag-name').html()); set_up_popin(tagBox.data('id'), tagBox.find('.tag-name').html());
rename_tag_open() rename_tag_open()
}) })
@ -268,7 +267,7 @@ function set_up_popin(id, tagName) {
$(".RenameTagPopInContainer").find(".tag-property-input").attr("id", id); $(".RenameTagPopInContainer").find(".tag-property-input").attr("id", id);
$(".AddIconTitle span").html(str_tag_rename.replace("%s", tagName)) $(".AddIconTitle span").html(str_tag_rename.replace("%s", tagName))
$(".ClosePopIn").on('click', function () { $(".ClosePopIn, .TagCancel").on('click', function () {
rename_tag_close() rename_tag_close()
}); });
$(".TagSubmit").html(str_yes_rename_confirmation); $(".TagSubmit").html(str_yes_rename_confirmation);