@ -24,8 +24,9 @@ define(['jquery', 'text!partials/helpoverlay.html', 'text!partials/helptour.html
//helptour
//helptour
return [ function ( ) {
return [ function ( ) {
var controller = [ '$scope' , '$rootScope' , '$timeout' , 'mediaStream' , '$modal ' , function ( $scope , $rootScope , $timeout , mediaStream , $modal ) {
var controller = [ '$scope' , '$timeout' , '$modal' , 'userSettingsData ' , function ( $scope , $timeout , $modal , userSettingsData ) {
var displayTime = 500 ;
var displayTime = 500 ;
var shown = localStorage . getItem ( 'mediastream-helptour' ) ;
var doStep = function ( i , elem ) {
var doStep = function ( i , elem ) {
$timeout ( function ( ) {
$timeout ( function ( ) {
$ ( elem ) . addClass ( 'in' ) ;
$ ( elem ) . addClass ( 'in' ) ;
@ -41,8 +42,8 @@ define(['jquery', 'text!partials/helpoverlay.html', 'text!partials/helptour.html
} ;
} ;
var introTour = function ( ) {
var introTour = function ( ) {
$scope . layout . settings = false ;
$scope . layout . settings = false ;
var controller = [ '$scope' , '$modalInstance' , function ( $ scope, $modalInstance ) {
var controller = [ '$scope' , '$modalInstance' , function ( scope , $modalInstance ) {
$ scope. goTour = function ( ) {
scope . goTour = function ( ) {
$modalInstance . dismiss ( ) ;
$modalInstance . dismiss ( ) ;
startTour ( ) ;
startTour ( ) ;
} ;
} ;
@ -50,11 +51,13 @@ define(['jquery', 'text!partials/helpoverlay.html', 'text!partials/helptour.html
$modal . open ( {
$modal . open ( {
template : templatehelptour ,
template : templatehelptour ,
controller : controller ,
controller : controller ,
resolve : { } ,
size : 'sm'
size : 'sm'
} ) ;
} ) ;
} ;
} ;
if ( ! shown ) {
introTour ( ) ;
introTour ( ) ;
localStorage . setItem ( 'mediastream-helptour' , true ) ;
}
$scope . $on ( 'showHelpTour' , function ( current , last ) {
$scope . $on ( 'showHelpTour' , function ( current , last ) {
if ( current ) {
if ( current ) {
introTour ( ) ;
introTour ( ) ;