js: Fix some minor whitespace issues.

This commit is contained in:
Tim Abbott 2016-12-02 18:39:03 -08:00
parent 5e9918135b
commit 2c940b93ab
3 changed files with 7 additions and 7 deletions

View File

@ -317,15 +317,15 @@ $(function () {
// Keep these 2 feedback bot triggers separate because they have to
// propagate the event differently.
$('.feedback').click(function (e) {
compose.start('private', { private_message_recipient: 'feedback@zulip.com',
trigger: 'feedback menu item' });
compose.start('private', {private_message_recipient: 'feedback@zulip.com',
trigger: 'feedback menu item'});
});
$('#feedback_button').click(function (e) {
e.stopPropagation();
popovers.hide_all();
compose.start('private', { private_message_recipient: 'feedback@zulip.com',
trigger: 'feedback button' });
compose.start('private', {private_message_recipient: 'feedback@zulip.com',
trigger: 'feedback button'});
});

View File

@ -779,7 +779,7 @@ $(function () {
// Hide users which aren't in filtered users
_.each(users, function (user) {
var display_type = filtered_users.hasOwnProperty(user.email)? "block" : "none";
$("label[data-name='" + user.email + "']").css({display:display_type});
$("label[data-name='" + user.email + "']").css({display: display_type});
});
update_announce_stream_state();

View File

@ -203,7 +203,7 @@ function send_delayed_stream_message(stream, topic, content, delay) {
}
function disable_event_handlers() {
$('body').css({overflow:'hidden'}); // prevents scrolling the feed
$('body').css({overflow: 'hidden'}); // prevents scrolling the feed
_.each(["keydown", "keyup", "keypress", "scroll"], function (event_name) {
var existing_events = $._data(document, "events")[event_name];
if (existing_events === undefined) {
@ -215,7 +215,7 @@ function disable_event_handlers() {
}
function enable_event_handlers() {
$('body').css({overflow:'auto'}); // enables scrolling the feed
$('body').css({overflow: 'auto'}); // enables scrolling the feed
_.each(["keydown", "keyup", "keypress", "scroll"], function (event_name) {
$._data(document, "events")[event_name] = event_handlers[event_name];
});