mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 15:33:30 +00:00
Fix whitespace in code.
(imported from commit 4bb750f886ccffc22d54140c10d39f0f91725156)
This commit is contained in:
@@ -62,7 +62,7 @@ exports.highlight_query_in_phrase = function (query, phrase) {
|
||||
query = query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, '\\$&');
|
||||
var regex = new RegExp('(^' + query + ')', 'ig');
|
||||
|
||||
var result = "";
|
||||
var result = "";
|
||||
var parts = phrase.split(' ');
|
||||
for (i = 0; i < parts.length; i++) {
|
||||
if (i > 0) result += " ";
|
||||
|
||||
@@ -55,7 +55,7 @@ exports.message_viewport_info = function () {
|
||||
res.visible_height =
|
||||
element_just_below_us.offset().top
|
||||
- res.visible_top;
|
||||
|
||||
|
||||
return res;
|
||||
};
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ exports.stop_auto_scrolling = function() {
|
||||
exports.system_initiated_animate_scroll = function (scroll_amount) {
|
||||
suppress_scroll_pointer_update = true; // Gets set to false in the scroll handler.
|
||||
var viewport_offset = exports.scrollTop();
|
||||
in_stoppable_autoscroll = true;
|
||||
in_stoppable_autoscroll = true;
|
||||
$("html, body").animate({
|
||||
scrollTop: viewport_offset + scroll_amount,
|
||||
always: function () {
|
||||
|
||||
Reference in New Issue
Block a user