Private GIT

Skip to content
Snippets Groups Projects
Commit fb171603 authored by sarak_000's avatar sarak_000
Browse files

chane header for mobile and safari (brinbois)

parent 53d431d2
No related branches found
No related tags found
No related merge requests found
......@@ -22,3 +22,15 @@ font-size: 10px;
#outerWrapper { width: 98%; padding-left: 1%; padding-right: 1%; }
body .ui-jqgrid .ui-jqgrid-htable th {
background: #e6e6e6 50% 50% repeat-x;
}
body .ui-state-default, body .ui-widget-content .ui-state-default, body .ui-widget-header .ui-state-default {
background: #e6e6e6 50% 50% repeat-x;
color: #555555;
}
body .floatingHeader{
visibility: none;
}
......@@ -522,6 +522,12 @@ function setLayout(imdb,name){
function UpdateTableHeaders() {
\$(".ui-jqgrid.ui-widget.ui-widget-content").each(function() {
var visi = "visible";
if((navigator.userAgent.match(/iPhone/i))||(navigator.userAgent.match(/iPod/i))||(navigator.userAgent.match(/Android/i))||(navigator.userAgent.match(/Safari/i))){
var visi = "none";
}else{
var el = \$(this),
offset = el.offset(),
scrollTop = \$(window).scrollTop(),
......@@ -529,17 +535,18 @@ function setLayout(imdb,name){
if ((scrollTop > offset.top) && (scrollTop < offset.top + el.height())) {
floatingHeader.css({
"visibility": "visible",
"visibility": visi,
"top" : "0px",
"z-index" : "1000"
});
} else {
floatingHeader.css({
"top" : offset.top - scrollTop + "px",
"visibility": "visible",
"visibility": visi,
"z-index" : "2"
});
};
}
});
}
......@@ -554,7 +561,6 @@ function setLayout(imdb,name){
.before(clonedHeaderRow.clone())
.css("width", clonedHeaderRow.width())
.addClass("floatingHeader");
});
\$(window)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment