Browse Source

Learnpath: Quiz: Fix issue preventing save buttons for individual questions and end of test when quizzes are included into learning paths on Apple devices - refs #2572 BT#14596

Yannick Warnier 6 years ago
parent
commit
3400f430a5
1 changed files with 10 additions and 0 deletions
  1. 10 0
      main/template/default/learnpath/view.tpl

+ 10 - 0
main/template/default/learnpath/view.tpl

@@ -146,11 +146,21 @@
 
     $(document).on('ready', function () {
         if (/iPhone|iPod|iPad/.test(navigator.userAgent)) {
+            // Fix an issue where you cannot scroll below first screen in
+            // learning paths on Apple devices
             document.getElementById('wrapper-iframe')
                 .setAttribute(
                     'style',
                     'width:100%; overflow:auto; position:auto; -webkit-overflow-scrolling:touch !important;'
                 );
+            // Fix another issue whereby buttons do not react to click below
+            // second screen in learning paths on Apple devices
+            document.getElementById('content-id')
+                .setAttribute(
+                    'style',
+                    'overflow: auto;'
+                );
+
         }
 
         {% if lp_mode == 'embedframe' %}