mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Remove references to old tour but include code for new tour.
This commit is contained in:
@@ -8,36 +8,15 @@
|
||||
* See the LICENSE file for details.
|
||||
*/
|
||||
|
||||
/** global: Tour, showTour, accountFrontpageUri, token, billCount, accountExpenseUri, accountRevenueUri */
|
||||
/** global: accountFrontpageUri, token, billCount, accountExpenseUri, accountRevenueUri */
|
||||
|
||||
$(function () {
|
||||
"use strict";
|
||||
// do chart JS stuff.
|
||||
drawChart();
|
||||
if (showTour === true) {
|
||||
$.getJSON('json/tour').done(function (data) {
|
||||
var tour = new Tour(
|
||||
{
|
||||
steps: data.steps,
|
||||
template: data.template,
|
||||
onEnd: endTheTour
|
||||
});
|
||||
// Initialize the tour
|
||||
tour.init();
|
||||
// Start the tour
|
||||
tour.start();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
function endTheTour() {
|
||||
"use strict";
|
||||
$.post('json/end-tour', {_token: token});
|
||||
|
||||
}
|
||||
|
||||
function drawChart() {
|
||||
"use strict";
|
||||
lineChart(accountFrontpageUri, 'accounts-chart');
|
||||
|
14
public/js/ff/intro/intro.js
Normal file
14
public/js/ff/intro/intro.js
Normal file
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* intro.js
|
||||
* Copyright (c) 2017 thegrumpydictator@gmail.com
|
||||
* This software may be modified and distributed under the terms of the Creative Commons Attribution-ShareAlike 4.0 International License.
|
||||
*
|
||||
* See the LICENSE file for details.
|
||||
*/
|
||||
|
||||
/** global: route_for_tour */
|
||||
|
||||
$(function () {
|
||||
"use strict";
|
||||
alert('show user intro for ' + route_for_tour);
|
||||
});
|
22
public/js/lib/bootstrap-tour.min.js
vendored
22
public/js/lib/bootstrap-tour.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user