Skip to content

Commit

Permalink
Merge branch 'release-7.15.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Feb 28, 2022
2 parents 0a84eec + 4e78fb2 commit b9e459b
Show file tree
Hide file tree
Showing 9 changed files with 133 additions and 81 deletions.
5 changes: 3 additions & 2 deletions locales/nb-NO/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,13 @@ msgid "lower than or equal"
msgstr "lavere enn eller lik"

msgid "Manage custom interactions"
msgstr "Administrer PCI'er"
msgstr "Administrer spesialdesignede oppgavetyper"

msgid "Max attempts:"
msgstr "Maks forsøk:"

msgid "Maximum number of recording attempts allowed to the test taker. Set to 0 to allow unlimited attempts. With a limit of 3, the test taker will be able to click 2 times on the reset button."
msgstr "Maksimalt antall opptak kandidaten kan gjøre. Sett til 0 for å tillate ubegrensede forsøk. Med en øvre grense på 3 vil kandidaten kunne klikke 2 ganger på tilbakeknappen."
msgstr "Maksimalt antall opptak eleven kan gjøre. Sett til 0 for å tillate ubegrensede forsøk. Med en øvre grense på 3 vil eleven kunne klikke 2 ganger på tilbakeknappen."

msgid "Medium"
msgstr "Medium"
Expand Down Expand Up @@ -203,6 +203,7 @@ msgstr "Plus/minus"
msgid "Portable Custom Interactions"
msgstr "PCI'er"

# Hva menes egentlig her?
msgid "Recorded audio is automatically played back after recording stops. During playback, no user interaction is possible and all buttons are disabled."
msgstr "Innspilt lyd spoles automatisk tilbake etter at opptaket stopper. Under avspilling er ingen brukerinteraksjon mulig, og alle knappene er deaktivert."

Expand Down
2 changes: 1 addition & 1 deletion locales/nb-NO/messages_po.js

Large diffs are not rendered by default.

47 changes: 47 additions & 0 deletions migrations/Version202202251126361465_qtiItemPci.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?php

declare(strict_types=1);

namespace oat\qtiItemPci\migrations;

use Doctrine\DBAL\Schema\Schema;
use oat\tao\scripts\tools\migrations\AbstractMigration;
use Doctrine\Migrations\Exception\IrreversibleMigration;
use oat\qtiItemPci\model\IMSPciModel;
use oat\qtiItemPci\scripts\install\RegisterPciMathEntry;

/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version202202251126361465_qtiItemPci extends AbstractMigration
{

public function getDescription(): string
{
return 'Register new version of Math Entry PCI';
}

public function up(Schema $schema): void
{
$registry = (new IMSPciModel())->getRegistry();
if ($registry->has('mathEntryInteraction')) {
/** @noinspection PhpUnhandledExceptionInspection */
$registry->removeAllVersions('mathEntryInteraction');
}

$this->addReport(
$this->propagate(
new RegisterPciMathEntry()
)(
['1.2.2']
)
);
}

public function down(Schema $schema): void
{
throw new IrreversibleMigration(
'In order to undo this migration, please revert the client-side changes and run ' . RegisterPciMathEntry::class
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"label": "Math entry",
"short": "Math entry",
"description": "Allow test taker to type math formulas",
"version": "1.2.1",
"version": "1.2.2",
"author": "Christophe Noël",
"email": "christophe@taotesting.com",
"tags": [
Expand Down
126 changes: 63 additions & 63 deletions views/js/pciCreator/ims/mathEntryInteraction/imsPciCreator.min.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,9 @@ define([
handlers: {
edit: function onChange(mathField) {
self.autoWrapContent();
self.pciInstance.trigger('responseChange', [mathField.latex()]);
if(self.pciInstance) {
self.pciInstance.trigger('responseChange', [mathField.latex()]);
}
},
enter: function onEnter(mathField) {
// The "allow new line" option works under the following conditions:
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit b9e459b

Please sign in to comment.