diff --git a/www/common/common-codemirror.js b/www/common/common-codemirror.js index 75da658b8..6202a9ce3 100644 --- a/www/common/common-codemirror.js +++ b/www/common/common-codemirror.js @@ -150,6 +150,7 @@ define([ options: options, // Entries displayed in the menu left: true, // Open to the left of the button isSelect: true, + feedback: 'CODE_LANGUAGE', }; var $block = exp.$language = Cryptpad.createDropdown(dropdownConfig); $block.find('button').attr('title', Messages.languageButtonTitle); @@ -183,7 +184,8 @@ define([ options: options, // Entries displayed in the menu left: true, // Open to the left of the button isSelect: true, - initialValue: lastTheme + initialValue: lastTheme, + feedback: 'CODE_THEME', }; var $block = exp.$theme = Cryptpad.createDropdown(dropdownConfig); $block.find('button').attr('title', Messages.themeButtonTitle); diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 8f32d25a6..66fccba1c 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -1205,6 +1205,7 @@ define([ setActive($val); $innerblock.scrollTop($val.position().top + $innerblock.scrollTop()); } + if (config.feedback) { Cryptpad.feedback(config.feedback); } }; $container.click(function (e) { @@ -1403,7 +1404,8 @@ define([ text: $userButton.html(), // Button initial text options: options, // Entries displayed in the menu left: true, // Open to the left of the button - container: config.$initBlock // optional + container: config.$initBlock, // optional + feedback: "USER_ADMIN", }; var $userAdmin = createDropdown(dropdownConfigUser); diff --git a/www/common/toolbar2.js b/www/common/toolbar2.js index 3b5fd0ea2..5c531c38f 100644 --- a/www/common/toolbar2.js +++ b/www/common/toolbar2.js @@ -265,7 +265,9 @@ define([ $button.click(function () { $content.toggle(); - Cryptpad.setAttribute('userlist-drawer', $content.is(':visible')); + var visible = $content.is(':visible'); + Cryptpad.setAttribute('userlist-drawer', visible); + Cryptpad.feedback(visible?'USERLIST_SHOW': 'USERLIST_HIDE'); }); Cryptpad.getAttribute('userlist-drawer', function (err, val) { @@ -343,7 +345,8 @@ define([ } var dropdownConfigShare = { text: $('