Skip to content

Commit 293eac1

Browse files
author
dkuffner
committed
Bugfix:: Tutorial links will be opened in a new window. The iframe name must be set (in addition to the id)
1 parent 672b92c commit 293eac1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Scalatron/webui/client/Tutorial.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ Ext.define('TutorialPanel', {
2727
this.on('afterrender', function() {
2828
var hiddenFrame = this.el.createChild({
2929
id: 'tutorialIFrame',
30+
// Bugfix for firefox and IE
31+
name: 'tutorialIFrame',
3032
tag: 'iframe',
3133
src: config.url,
3234
width: '0',
@@ -70,7 +72,7 @@ Ext.define('TutorialPanel', {
7072
var url = urls.getByKey(a.id);
7173
a.href = url;
7274

73-
var indexOfMarker = url.indexOf("/tutorial/tutorial")
75+
var indexOfMarker = url.indexOf("/tutorial/tutorial");
7476
if(indexOfMarker > 0) {
7577
// this URL points inside the tutorial
7678
a.target = 'tutorialIFrame';

0 commit comments

Comments
 (0)