Added markdown syntax tooltip at the end of welcome tour
This commit is contained in:
parent
8a3075ee80
commit
13f31bbfc6
@ -21,6 +21,19 @@ define([
|
|||||||
},
|
},
|
||||||
onEnd: function() {
|
onEnd: function() {
|
||||||
storage.welcomeTour = 'done';
|
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: [
|
template: [
|
||||||
'<div class="popover tour">',
|
'<div class="popover tour">',
|
||||||
@ -32,7 +45,7 @@ define([
|
|||||||
' <button class="btn btn-default" data-role="end">Got it!</button>',
|
' <button class="btn btn-default" data-role="end">Got it!</button>',
|
||||||
' </nav>',
|
' </nav>',
|
||||||
'</div>'
|
'</div>'
|
||||||
].join("")
|
].join(""),
|
||||||
});
|
});
|
||||||
tour.addSteps([
|
tour.addSteps([
|
||||||
{
|
{
|
||||||
|
@ -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>
|
<i class="icon-help-circled"></i>
|
||||||
</button>
|
</button>
|
||||||
<div class="dropdown-menu pull-right">
|
<div class="dropdown-menu pull-right">
|
||||||
|
@ -298,6 +298,7 @@ a {
|
|||||||
&:hover,
|
&:hover,
|
||||||
&:focus,
|
&:focus,
|
||||||
&:active,
|
&:active,
|
||||||
|
.info-tooltip &,
|
||||||
.open &.dropdown-toggle {
|
.open &.dropdown-toggle {
|
||||||
color: darken(@secondary, 30%);
|
color: darken(@secondary, 30%);
|
||||||
border-color: fade(@secondary, 10%);
|
border-color: fade(@secondary, 10%);
|
||||||
|
Loading…
Reference in New Issue
Block a user