Tour seems to work here, not sure though

--HG--
branch : quitta-gsoc-2013
hg/feature/sse2
Quitta 12 years ago
parent 35179cab0f
commit 879f28e45f

@ -226,7 +226,7 @@ function docReady(){
});
//tour
if($('.index').length && typeof(tour)=='undefined')
if($('.tour').length && typeof(tour)=='undefined')
{
var tour = new Tour();
tour.addStep({
@ -274,7 +274,8 @@ function docReady(){
$('#myModal').modal('show');
});
$('.btn-help').click(function(e){
alert('test');
}
});

@ -4,7 +4,7 @@ function show_help(help_tip)
{
var tour = new Tour();
tour.addStep({
element: ".span10:first", /* html element next to which the step popover should be shown */
element: ".dashboard-avatar:first", /* html element next to which the step popover should be shown */
placement: "top",
title: "Custom Tour", /* title of the popover */
content: "You can create tour like this. Click Next." /* content of the popover */
@ -20,7 +20,8 @@ function show_help(help_tip)
title: "Dashboard",
content: "This is your dashboard from here you will find highlights."
});
tour.restart();
}
}

@ -114,7 +114,7 @@
<div class="box-header well">
<h2><i class="icon-info-sign"></i> Introduction</h2>
<div class="box-icon">
<a href="#" class="btn btn-help btn-round"><i class="icon-info-sign"></i></a>
<a href="#" class="btn btn-round" onclick="javascript:show_help('test');return false;"><i class="icon-info-sign"></i></a>
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>

Loading…
Cancel
Save