Skip to content

Commit f4107f1

Browse files
hebastaAkron
authored andcommitted
Hides help iframe after tour starts and makes first tooltip floating.
Change-Id: Ic9b24dfad38626812b627c8a01e0d7bbbf06cdf7
1 parent 523b573 commit f4107f1

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

dev/js/src/tour/tours.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,8 @@ define(['lib/intro', 'vc', 'hint', 'menu', 'vc/doc', 'vc/docgroup'],
121121
let Steps =[
122122
//Step 1, intro_item 0
123123
{
124-
element: '#link-guided-tour',
125124
title: loc.TOUR_welcti,
126125
intro: loc.TOUR_welc,
127-
position: 'right',
128126
},
129127
//Step 2, intro_item 1
130128
{
@@ -245,7 +243,14 @@ define(['lib/intro', 'vc', 'hint', 'menu', 'vc/doc', 'vc/docgroup'],
245243
intro._introItems[7].element = doe.querySelector('#vc-view * .doc');
246244
intro._introItems[7].position = "left";
247245
break;
248-
}
246+
}
247+
/*
248+
* Hides the tutorial. If it is opened in an iframe the searchbar which is needed for the tour is not visible anymore.
249+
*/
250+
if(this._currentStep == 1){
251+
let tutel = doe.querySelector('#tutorial');
252+
tutel.style.display = 'none';
253+
}
249254
if(this._currentStep == 9){
250255
let statbut = doe.querySelector('.statistic');
251256
statbut.click();

0 commit comments

Comments
 (0)