Skip to content

Commit

Permalink
fixed NaN bug in display.html for hiding unit number on expired timed…
Browse files Browse the repository at this point in the history
… exam - EDLY-4747 (#333)
  • Loading branch information
faatehsultan authored Oct 7, 2022
1 parent 01d202e commit 29a28ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion common/lib/xmodule/xmodule/js/src/sequence/display.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@
this.keydownHandler($(element).find('#sequence-list .tab'));
this.base_page_title = ($('title').data('base-title') || '').trim();
this.bind();
this.render(parseInt(this.el.data('position'), 10));
this.render(parseInt(this.el.data('position')), 10);
if (!(this.el.data('position'))) {
$('#seq-end-element-wrapper').hide()
}
}

Sequence.prototype.$ = function(selector) {
Expand Down

0 comments on commit 29a28ea

Please sign in to comment.