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