From fc2728c92e19ddea67ff0a2477d7c4b170eef40e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be> Date: Thu, 6 Apr 2017 15:03:04 +0200 Subject: [PATCH] Fixes #5469 Removed specific treatment for web browsers --- include/class_listing.inc | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/include/class_listing.inc b/include/class_listing.inc index b186f0632..2437dbd1a 100644 --- a/include/class_listing.inc +++ b/include/class_listing.inc @@ -344,13 +344,6 @@ class listing 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"; $result .= "<input type='hidden' name='position_".$this->pid."' id='position_".$this->pid."'>\n"; @@ -367,11 +360,8 @@ class listing // Build list header $result .= "<thead><tr>\n"; if ($this->multiSelect) { - $width = "24px"; - if (preg_match('/Konqueror/i', $_SERVER['HTTP_USER_AGENT'])) { - $width = "28px"; - } - $result .= "<th 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\");' ></th>\n"; + $width = '24px'; + $result .= '<th 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\");\' ></th>'."\n"; } foreach ($this->header as $header) { $result .= $header; @@ -494,7 +484,7 @@ class listing } // Close list - $result .= $switch?"<input type='hidden' id='list_workaround'>":""; + $result .= ''; // Add scroll positioner $result .= '<script type="text/javascript">'; -- GitLab