diff --git a/zephyr/static/js/typeahead_helper.js b/zephyr/static/js/typeahead_helper.js index 54da1aec3a..12734b61d9 100644 --- a/zephyr/static/js/typeahead_helper.js +++ b/zephyr/static/js/typeahead_helper.js @@ -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 += " "; diff --git a/zephyr/static/js/ui.js b/zephyr/static/js/ui.js index 809dc00dde..70b97f94de 100644 --- a/zephyr/static/js/ui.js +++ b/zephyr/static/js/ui.js @@ -55,7 +55,7 @@ exports.message_viewport_info = function () { res.visible_height = element_just_below_us.offset().top - res.visible_top; - + return res; }; diff --git a/zephyr/static/js/viewport.js b/zephyr/static/js/viewport.js index 1827ee6006..cd8f9dcaaa 100644 --- a/zephyr/static/js/viewport.js +++ b/zephyr/static/js/viewport.js @@ -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 () {