Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fusiondirectory
fusiondirectory
Commits
fc2728c9
Commit
fc2728c9
authored
Apr 06, 2017
by
Côme Chilliet
Browse files
Fixes
#5469
Removed specific treatment for web browsers
parent
53516517
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/class_listing.inc
View file @
fc2728c9
...
...
@@ -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">'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment