diff options
author | ITSERVICES\rb7147 <rb7147@att.com> | 2017-04-25 11:46:00 -0400 |
---|---|---|
committer | ITSERVICES\rb7147 <rb7147@att.com> | 2017-05-03 09:58:17 -0400 |
commit | e0addf5b588a1244f9679becd90999dfcb4c3a94 (patch) | |
tree | 1212772d6366730266ff0e093c874b07aa716c29 /ecomp-sdk-app/src/main/webapp/static/fusion/raptor/js/persist_table_header.js | |
parent | 39fb0f30472777e4b60d6a7ac8aa4eb9773961ff (diff) |
Policy 1707 commit to LF
Change-Id: Ibe6f01d92f9a434c040abb05d5386e89d675ae65
Signed-off-by: ITSERVICES\rb7147 <rb7147@att.com>
Diffstat (limited to 'ecomp-sdk-app/src/main/webapp/static/fusion/raptor/js/persist_table_header.js')
-rw-r--r-- | ecomp-sdk-app/src/main/webapp/static/fusion/raptor/js/persist_table_header.js | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/ecomp-sdk-app/src/main/webapp/static/fusion/raptor/js/persist_table_header.js b/ecomp-sdk-app/src/main/webapp/static/fusion/raptor/js/persist_table_header.js deleted file mode 100644 index 2c90306f0..000000000 --- a/ecomp-sdk-app/src/main/webapp/static/fusion/raptor/js/persist_table_header.js +++ /dev/null @@ -1,47 +0,0 @@ - function UpdateTableHeaders() { - $("div.divTableWithFloatingHeader").each(function() { - var originalHeaderRow = $(".tableFloatingHeaderOriginal", this); - var floatingHeaderRow = $(".tableFloatingHeader", this); - var offset = $(this).offset(); - var scrollTop = $(window).scrollTop(); - if ((scrollTop > offset.top) && (scrollTop < offset.top + $(this).height())) { - floatingHeaderRow.css("visibility", "visible"); - floatingHeaderRow.css("top", Math.min(scrollTop - offset.top, $(this).height() - floatingHeaderRow.height()) + "px"); - floatingHeaderRow.css("z-index", "20"); - - // Copy cell widths from original header - $("th", floatingHeaderRow).each(function(index) { - var cellWidth = $("th", originalHeaderRow).eq(index).css('width'); - $(this).css('width', cellWidth); - }); - - // Copy row width from whole table - floatingHeaderRow.css("width", $(this).css("width")); - } - else { - floatingHeaderRow.css("visibility", "hidden"); - floatingHeaderRow.css("top", "0px"); - } - }); - } - - $(document).ready(function() { - $("table.tableWithFloatingHeader").each(function() { - $(this).wrap("<div class=\"divTableWithFloatingHeader\" style=\"position:relative\"></div>"); - - var originalHeaderRow = $("tr:first", this) - originalHeaderRow.before(originalHeaderRow.clone()); - var clonedHeaderRow = $("tr:first", this) - - clonedHeaderRow.addClass("tableFloatingHeader"); - clonedHeaderRow.css("position", "absolute"); - clonedHeaderRow.css("top", "0px"); - clonedHeaderRow.css("left", $(this).css("margin-left")); - clonedHeaderRow.css("visibility", "hidden"); - - originalHeaderRow.addClass("tableFloatingHeaderOriginal"); - }); - UpdateTableHeaders(); - $(window.parent).scroll(UpdateTableHeaders); - $(window.parent).resize(UpdateTableHeaders); - });
\ No newline at end of file |