Added markdown syntax tooltip at the end of welcome tour

This commit is contained in:
benweet 2013-12-25 23:14:23 +01:00
parent 8a3075ee80
commit 13f31bbfc6
3 changed files with 16 additions and 2 deletions

View File

@ -21,6 +21,19 @@ define([
},
onEnd: function() {
storage.welcomeTour = 'done';
var tooltip = $('.button-markdown-syntax').parent().tooltip({
html: true,
container: $('.extension-preview-buttons'),
placement: 'bottom',
trigger: 'manual',
title: 'Need help with Markdown syntax?'
}).tooltip('show').addClass('info-tooltip');
tooltip.one('click', function() {
tooltip.tooltip('hide').removeClass('info-tooltip');
});
setTimeout(function() {
tooltip.tooltip('hide').removeClass('info-tooltip');
}, 10000);
},
template: [
'<div class="popover tour">',
@ -32,7 +45,7 @@ define([
' <button class="btn btn-default" data-role="end">Got it!</button>',
' </nav>',
'</div>'
].join("")
].join(""),
});
tour.addSteps([
{

View File

@ -1,4 +1,4 @@
<button class="btn btn-info dropdown-toggle" title="Markdown syntax" data-toggle="dropdown">
<button class="btn btn-info dropdown-toggle button-markdown-syntax" title="Markdown syntax" data-toggle="dropdown">
<i class="icon-help-circled"></i>
</button>
<div class="dropdown-menu pull-right">

View File

@ -298,6 +298,7 @@ a {
&:hover,
&:focus,
&:active,
.info-tooltip &,
.open &.dropdown-toggle {
color: darken(@secondary, 30%);
border-color: fade(@secondary, 10%);