mirror of https://github.com/zulip/zulip.git
Fix Hiding Stream Creation Prompt on "Enter".
The stream creation prompt would be hidden if someone clicked “Enter” and the form failed. This is presumably due to some bootstrap magic.
This commit is contained in:
parent
c77b1b2ac0
commit
65288848b1
|
@ -859,7 +859,12 @@ $(function () {
|
||||||
|
|
||||||
$(".subscriptions").on("click", "[data-dismiss]", function (e) {
|
$(".subscriptions").on("click", "[data-dismiss]", function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
// we want to make sure that the click is not just a simulated
|
||||||
|
// click; this fixes an issue where hitting "enter" would
|
||||||
|
// trigger this code path due to bootstrap magic.
|
||||||
|
if (e.clientY !== 0) {
|
||||||
show_subs_pane.nothing_selected();
|
show_subs_pane.nothing_selected();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// 'Check all' and 'Uncheck all' links
|
// 'Check all' and 'Uncheck all' links
|
||||||
|
|
Loading…
Reference in New Issue