Index: gm/rebaseline_server/static/utils.js |
diff --git a/gm/rebaseline_server/static/utils.js b/gm/rebaseline_server/static/utils.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e846b90bd663963e243446d2a5d6c8cffdf55ed0 |
--- /dev/null |
+++ b/gm/rebaseline_server/static/utils.js |
@@ -0,0 +1,12 @@ |
+function make_results_header_sticky( ) { |
+ element = $(".results-header-actions"); |
+ var pos = element.position(); |
+ $(window).scroll( function() { |
+ var windowPos = $(window).scrollTop(); |
+ if (windowPos > pos.top) { |
+ element.addClass("sticky"); |
+ } else { |
+ element.removeClass("sticky"); |
+ } |
+ }); |
+} |