mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
tutorial: Remove low-quality alert bar onboarding flow.
This alert bar thing was buggy and didn't look that good, so let's just remove it. We can always write a nicer thing advertising the desktop app later.
This commit is contained in:
@@ -202,16 +202,6 @@ function send_delayed_stream_message(stream, topic, content, delay) {
|
||||
}, delay * 1000); // delay is in seconds.
|
||||
}
|
||||
|
||||
function hide_app_alert() {
|
||||
$('#alert-bar-container').slideUp(100);
|
||||
}
|
||||
|
||||
function show_app_alert(contents) {
|
||||
$('#custom-alert-bar-content').html(contents);
|
||||
$('#alert-bar-container').show();
|
||||
$('#alert-bar-container .close-alert-icon').expectOne().click(hide_app_alert);
|
||||
}
|
||||
|
||||
function disable_event_handlers() {
|
||||
$('body').css({'overflow':'hidden'}); // prevents scrolling the feed
|
||||
_.each(["keydown", "keyup", "keypress", "scroll"], function (event_name) {
|
||||
@@ -354,15 +344,6 @@ function finale(skip) {
|
||||
});
|
||||
deferred_work = [];
|
||||
|
||||
var alert_contents;
|
||||
|
||||
if (page_params.prompt_for_invites) {
|
||||
alert_contents = "<i class='icon-vector-heart alert-icon'></i>It's lonely in here! <a href='#invite-user' data-toggle='modal'>Invite some users</a>.";
|
||||
} else {
|
||||
alert_contents = "<i class='icon-vector-desktop alert-icon'></i>What's better than " + page_params.product_name + " in your browser? The <a href='/apps' target='_blank'>"+ page_params.product_name + " desktop app</a>!";
|
||||
}
|
||||
show_app_alert(alert_contents);
|
||||
|
||||
// We start you in a narrow so it's not overwhelming.
|
||||
if (stream_data.in_home_view(page_params.notifications_stream)) {
|
||||
narrow.activate([{operator: "stream", operand: page_params.notifications_stream}]);
|
||||
|
||||
Reference in New Issue
Block a user