mirror of
https://github.com/zulip/zulip.git
synced 2026-06-24 21:08:25 +08:00
hotkey: Close deprecation notice on Enter keypress.
This commit is contained in:
parent
528d2c6b28
commit
c8024cec5c
@ -149,6 +149,7 @@ exports.maybe_show_deprecation_notice = function (key) {
|
||||
if (shown_deprecation_notices.indexOf(key) === -1) {
|
||||
$('#deprecation-notice-modal').modal('show');
|
||||
$('#deprecation-notice-message').text(message);
|
||||
$('#close-deprecation-notice').focus();
|
||||
shown_deprecation_notices.push(key);
|
||||
if (localstorage.supported()) {
|
||||
localStorage.setItem('shown_deprecation_notices', JSON.stringify(shown_deprecation_notices));
|
||||
|
||||
@ -11,6 +11,6 @@
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="button rounded" data-dismiss="modal">{{ _("Got it") }}</button>
|
||||
<button type="button" class="button rounded" id="close-deprecation-notice" data-dismiss="modal">{{ _("Got it") }}</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user