summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 50ecb67)
raw | patch | inline | side by side (parent: 50ecb67)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 5 Jan 2010 09:09:27 +0000 (09:09 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 5 Jan 2010 09:09:27 +0000 (09:09 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15037 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/html/include/focus.js | patch | blob | history | |
gosa-core/include/class_listing.inc | patch | blob | history |
index 5774946a5f3fb66cb357ee4247cef33b726de09a..173c7ba1757460969d79e116e6861bc1786206f9 100644 (file)
suggested = suggested -20;
}
- document.getElementById("d_scrollbody").style.height=suggested+"px";
+ if (!document.getElementById("list_workaround")) {
+ document.getElementById("d_scrollbody").style.height=suggested+20+"px";
+ }
if (document.getElementById("t_nscrollbody")) {
- document.getElementById("t_nscrollbody").style.height=(suggested-24)+"px";
+ document.getElementById("t_nscrollbody").style.height=(suggested-22)+"px";
}
}
return true;
index 5ebabd659b667fd808c30c698a44ea494d577dd1..aac1efd2ea9cee9eb4f0e680831967b87211f9a5 100644 (file)
return($message);
}
+ // Some browsers don't have the ability do do scrollable table bodies, filter them
+ // here.
+ $switch= false;
+ if (preg_match('/(Opera|Konqueror|Safari)/i', $_SERVER['HTTP_USER_AGENT'])){
+ $switch= true;
+ }
+
// Initialize list
$result= "<input type='hidden' value='$this->pid' name='PID'>\n";
$height= 450;
$height= $this->height;
}
- $result.= "<table cellpadding='0' cellspacing='0' border='0'><tr><td><div class='listContainer' id='d_scrollbody' style='border-top:1px solid #B0B0B0;width:700px;height:".($height+25)."px;'>\n";
+ $result.= "<table cellpadding='0' cellspacing='0' border='0'><tr><td><div class='listContainer' id='d_scrollbody' style='border-top:1px solid #B0B0B0;width:700px;min-height:".($height+25)."px;'>\n";
- $result.= "<table summary='$this->headline' style='height:99%;width:100%; table-layout:fixed;' cellspacing='0' cellpadding='0' id='t_scrolltable'>\n";
+ $height= "";
+ if ($switch){
+ $height= "height:100%;";
+ }
+ $result.= "<table summary='$this->headline' style='${height}width:100%; table-layout:fixed;' cellspacing='0' cellpadding='0' id='t_scrolltable'>\n";
$this->numColumns= count($this->colprops) + ($this->multiSelect?1:0);
// Build list header
$result.= "<thead class='fixedListHeader listHeaderFormat'><tr>\n";
if ($this->multiSelect) {
- $result.= "<td class='listheader' style='text-align:center;padding:0;width:24px;'><input type='checkbox' id='select_all' name='select_all' title='"._("Select all")."' onClick='toggle_all_(\"listing_selected_[0-9]*$\",\"select_all\");' ></td>\n";
+ $width= "24px";
+ if (preg_match('/Konqueror/i', $_SERVER['HTTP_USER_AGENT'])){
+ $width= "28px";
+ }
+ $result.= "<td class='listheader' style='text-align:center;padding:0;width:$width;'><input type='checkbox' id='select_all' name='select_all' title='"._("Select all")."' onClick='toggle_all_(\"listing_selected_[0-9]*$\",\"select_all\");' ></td>\n";
}
foreach ($this->header as $header) {
$result.= $header;
// Render multi select if needed
if ($this->multiSelect) {
- $result.="<td style='text-align:center;width:24px;padding:0;' class='list1'> </td>";
+ $result.="<td style='text-align:center;padding:0;' class='list1'> </td>";
}
// Render defined department columns, fill the rest with some stuff
$smarty->assign("FILTER", $this->filter->render());
$smarty->assign("SIZELIMIT", print_sizelimit_warning());
$smarty->assign("LIST", $result);
+ $smarty->assign("list_workaround", $switch?"<input type='hidden' id='list_workaround'>":"");
// Assign navigation elements
$nav= $this->renderNavigation();