mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-34446 Completion report: Add sideways text support to more browsers
This commit is contained in:
parent
470d47f512
commit
853dd86368
1 changed files with 4 additions and 1 deletions
|
@ -8688,7 +8688,10 @@ function get_browser_version_classes() {
|
|||
*/
|
||||
function can_use_rotated_text() {
|
||||
global $USER;
|
||||
return ajaxenabled(array('Firefox' => 2.0)) && !$USER->screenreader;;
|
||||
return (check_browser_version('MSIE', 9) || check_browser_version('Firefox', 2) ||
|
||||
check_browser_version('Chrome', 21) || check_browser_version('Safari', 536.26) ||
|
||||
check_browser_version('Opera', 12) || check_browser_version('Safari iOS', 533)) &&
|
||||
!$USER->screenreader;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue