Skip to content

Commit

Permalink
Merge pull request #143 from oat-sa/hotfix/INV-707/missing-tooltip
Browse files Browse the repository at this point in the history
Hotfix/INV-707/Missing tooltip
  • Loading branch information
jsconan authored Oct 25, 2023
2 parents d2264f4 + 029181a commit 452da2a
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 1,436 deletions.
41 changes: 41 additions & 0 deletions migrations/Version202310250623044106_pciSamples.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

declare(strict_types=1);

namespace oat\pciSamples\migrations;

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

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

public function getDescription(): string
{
return 'Fix text reader PCI tooltip in the IMS version';
}

public function up(Schema $schema): void
{
$registry = (new IMSPciModel())->getRegistry();
$this->addReport(
$this->propagate(new RegisterPciTextReaderIMS())(['1.1.2'])
);
}

public function down(Schema $schema): void
{
throw new IrreversibleMigration(
sprintf(
'In order to undo this migration, please revert the client-side changes and run %s',
RegisterPciTextReaderIMS::class
)
);
}
}

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 @@ -3,7 +3,7 @@
"typeIdentifier": "textReaderInteraction",
"label": "Text reader",
"description": "The Paging widget combines a scrolling widget with additional paging controls.",
"version": "1.1.1",
"version": "1.1.2",
"author": "Aleh Hutnikau",
"email": "[email protected]",
"tags": [
Expand Down
519 changes: 1 addition & 518 deletions views/js/pciCreator/ims/textReaderInteraction/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 @@ -4,9 +4,10 @@ define(
'taoQtiItem/portableLib/lodash',
'taoQtiItem/portableLib/handlebars',
'textReaderInteraction/runtime/js/tabs',
'taoQtiItem/portableLib/OAT/util/tooltip',
'taoQtiItem/portableLib/jquery.qtip'
],
function ($, _, Handlebars, Tabs) {
function ($, _, Handlebars, Tabs, tooltipRenderer) {
'use strict';

return function (options) {
Expand Down Expand Up @@ -178,6 +179,8 @@ define(
$container = this.options.$container.find('.js-page-container')
.html(markup)
.toggleClass('light-mode', !templateData.multiPages);

tooltipRenderer.render($container);
}

//init tabs
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 452da2a

Please sign in to comment.