diff --git a/classes/output/mobile.php b/classes/output/mobile.php index 2673978..a2af9da 100644 --- a/classes/output/mobile.php +++ b/classes/output/mobile.php @@ -41,8 +41,7 @@ class mobile { public static function mobile_get_aitext($args) { global $CFG; $args = (object) $args; - $folder = $args->appversioncode >= 3950 ? 'latest' : 'ionic3'; - $templatepath = $CFG->dirroot."/question/type/aitext/mobile/$folder/addon-qtype-aitext.html"; + $templatepath = $CFG->dirroot."/question/type/aitext/mobile/qtype_aitext.html"; return [ 'templates' => [ [ diff --git a/db/mobile.php b/db/mobile.php index 1b04244..6fd7189 100644 --- a/db/mobile.php +++ b/db/mobile.php @@ -41,7 +41,7 @@ 'mobile_get_aitext' => [], // Function in classes/output/mobile.php. ], // Function needs caching for offline. 'styles' => [ - 'url' => $CFG->wwwroot.'/question/type/aitext/mobile/styles_app.css', + 'url' => $CFG->wwwroot.'/question/type/aitext/mobile/qtype_aitext_app.css', 'version' => '0.1' ] ] diff --git a/mobile/qtype_aitext.html b/mobile/qtype_aitext.html index 60e3629..2733815 100644 --- a/mobile/qtype_aitext.html +++ b/mobile/qtype_aitext.html @@ -1,14 +1,12 @@ -
-

- -

+
- +

+ +

+ [text]="question.textarea">