Skip to content

Commit

Permalink
Merge pull request #286 from oat-sa/release-1.1.9
Browse files Browse the repository at this point in the history
Release 1.1.9
  • Loading branch information
shaveko authored May 16, 2022
2 parents 16d6dcb + 75a6410 commit 4ca85d2
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oat-sa/tao-item-runner-qti",
"version": "1.1.8",
"version": "1.1.9",
"displayName": "TAO Item Runner QTI",
"description": "TAO QTI Item Runner modules",
"files": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import $ from 'jquery';
import _ from 'lodash';
import __ from 'i18n';
import features from 'services/features';
import strLimiter from 'util/strLimiter';
import template from 'taoQtiItem/qtiCommonRenderer/tpl/interactions/extendedTextInteraction';
import countTpl from 'taoQtiItem/qtiCommonRenderer/tpl/interactions/constraints/count';
Expand Down Expand Up @@ -83,6 +84,11 @@ const render = function render(interaction) {
$el.attr('placeholder', placeholderText);
}
if (_getFormat(interaction) === 'xhtml') {

if(!features.isVisible('taoQtiItem/creator/interaction/extendedText/property/xhtmlConstraints') && !features.isVisible('taoQtiItem/creator/interaction/extendedText/property/xhtmlRecommendations')) {
$container.find('.text-counter').hide();
}

_styleUpdater = function () {
let qtiItemStyle, $editorBody, qtiItem;

Expand Down
7 changes: 7 additions & 0 deletions test/qtiCommonRenderer/interactions/extendedText/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
<script type="text/javascript">
require(['/environment/config.js'], function() {
require(['qunitEnv'], function() {
define('services/features', function() {
return {
isVisible: function() {
return true;
}
}
});
require(['taoQtiItem/test/qtiCommonRenderer/interactions/extendedText/test'], function() {
QUnit.start();
QUnit.config.reorder = false;
Expand Down
7 changes: 7 additions & 0 deletions test/reviewRenderer/interactions/extendedText/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
<script type="text/javascript">
require(['/environment/config.js'], function () {
require(['qunitEnv'], function () {
define('services/features', function() {
return {
isVisible: function() {
return true;
}
}
});
require(['taoQtiItem/test/reviewRenderer/interactions/extendedText/test'], function () {
QUnit.start();
QUnit.config.reorder = false;
Expand Down

0 comments on commit 4ca85d2

Please sign in to comment.