fix: [UI] Element ID must be unique

pull/6423/head
Jakub Onderka 2020-10-11 22:00:36 +02:00
parent 72d0b873c8
commit 263b05c95b
2 changed files with 6 additions and 8 deletions

View File

@ -113,16 +113,15 @@
)
);
}
$tagData .= '<span class="tag-container nowrap ">' . $span_scope . $span_tag . $span_delete . '</span> ';
$tagData .= '<span class="tag-container nowrap">' . $span_scope . $span_tag . $span_delete . '</span> ';
}
$buttonData = array();
if ($full) {
$buttonData[] = sprintf(
'<button id="%s" title="%s" role ="button" tabindex="0" aria-label="%s" class="%s" style="%s" onClick="%s">%s</button>',
'addTagButton',
'<button title="%s" role="button" tabindex="0" aria-label="%s" class="%s" style="%s" onClick="%s">%s</button>',
__('Add a tag'),
__('Add a tag'),
'btn btn-inverse noPrint',
'addTagButton btn btn-inverse noPrint',
'line-height:10px; padding: 2px;',
sprintf(
"popoverPopup(this, '%s%s', '%s', '%s');",
@ -136,11 +135,10 @@
}
if ($host_org_editor || $full) {
$buttonData[] = sprintf(
'<button id="%s" title="%s" role ="button" tabindex="0" aria-label="%s" class="%s" style="%s" onClick="%s">%s</button>',
'addLocalTagButton',
'<button title="%s" role="button" tabindex="0" aria-label="%s" class="%s" style="%s" onClick="%s">%s</button>',
__('Add a local tag'),
__('Add a local tag'),
'btn btn-inverse noPrint',
'addLocalTagButton btn btn-inverse noPrint',
'line-height:10px; padding: 2px;',
sprintf(
"popoverPopup(this, '%s%s', '%s', '%s')",

View File

@ -3,7 +3,7 @@
{
"key": "t",
"description": "Open the tag selection modal",
"action": "$('#addTagButton').click()"
"action": "$('.addTagButton').first().click()"
},
{
"key": "f",