Skip to content

Commit

Permalink
Fixed issue 13018: Tutorial - create new survey -> tutorial crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Dec 18, 2017
1 parent 3d00d64 commit 9d8d461
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 5 additions & 4 deletions application/models/Tutorials.php
Expand Up @@ -40,18 +40,19 @@ private function _generatePreBuiltPackage()
'content' => gT("This tour will help you to easily get a basic understanding of LimeSurvey.")."<br/>"
.gt("We would like to help you with a quick tour of the most essential functions and features."),
'redirect' => false,
'onShow' => "(function(){ $('#welcomeModal').modal('hide'); })"
'onShow' => "(function(tour){ $('#welcomeModal').modal('hide'); })"
),
array( //2
'element' => '.selector__lstour--mainfunctionboxes',
'element' => '.selector__create_survey',
'path' => Yii::app()->createUrl('/admin/index'),
'backdrop' => true,
'title' => gT('The basic functions'),
'content' => gT("The three top boxes are the most basic functions of LimeSurvey.")."<br/>"
.gT("From left to right it should be 'Create survey', 'List surveys' and 'Global settings'. Best we start by creating a survey.")
.'<p class="alert bg-warning">'.gT("Click on the 'Create survey' box - or 'Next' in this tutorial").'</p>',
'reflex' => '.selector__lstour--createsurvey',
'reflex' => '.selector__create_survey',
'redirect' => true,
'onShow' => "(function(){ $('#welcomeModal').modal('hide'); })"
'onShow' => "(function(tour){ $('#welcomeModal').modal('hide'); $('.selector__create_survey').on('click', function(){tour.next();});})"
),
array( //3
'element' => '#surveyls_title',
Expand Down
2 changes: 0 additions & 2 deletions assets/packages/adminbasics/js/panelclickable.js
Expand Up @@ -4,8 +4,6 @@
*/
$(document).on('ready pjax:scriptcomplete',function(){
$(".panel-clickable").on('click',function(e){
e.preventDefault();
console.ls.log(e);
$that = $(this);
if($that.data('url')!=''){
if($that.data('target') === '_blank') {
Expand Down

0 comments on commit 9d8d461

Please sign in to comment.