changeset 713e94987da2 in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=713e94987da2
description:
        Use unique ID for bookmark button

        issue9552
        review318091002
diffstat:

 src/screen.js |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r c4a42d478b09 -r 713e94987da2 src/screen.js
--- a/src/screen.js     Sat Aug 29 18:28:12 2020 +0200
+++ b/src/screen.js     Sat Aug 29 18:29:15 2020 +0200
@@ -89,14 +89,13 @@
                 'aria-expanded': false,
                 'aria-label': Sao.i18n.gettext("Bookmarks"),
                 'title': Sao.i18n.gettext("Bookmarks"),
-                'id': 'bookmarks'
             }).append(Sao.common.ICONFACTORY.get_icon_img('tryton-bookmark', {
                 'aria-hidden': true,
-            }));
+            })).uniqueId();
             var dropdown_bookmark = jQuery('<ul/>', {
                 'class': 'dropdown-menu dropdown-menu-right',
                 'role': 'menu',
-                'aria-labelledby': 'bookmarks'
+                'aria-labelledby': this.but_bookmark.attr('id'),
             });
             this.but_bookmark.click(function() {
                 dropdown_bookmark.empty();

Reply via email to