mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	Built a new routine for intro tours.
This commit is contained in:
		| @@ -6,9 +6,28 @@ | ||||
|  * See the LICENSE file for details. | ||||
|  */ | ||||
|  | ||||
| /** global: route_for_tour */ | ||||
| /** global: routeForTour, routeStepsUri, routeForFinishedTour */ | ||||
|  | ||||
| $(function () { | ||||
|     "use strict"; | ||||
|     //alert('show user intro for ' + route_for_tour); | ||||
| }); | ||||
|     $.getJSON(routeStepsUri).done(setupIntro) | ||||
| }); | ||||
|  | ||||
| function setupIntro(steps) { | ||||
|  | ||||
|     var intro = introJs(); | ||||
|     intro.setOptions({ | ||||
|                          steps: steps, | ||||
|                          exitOnEsc: true, | ||||
|                          exitOnOverlayClick: true, | ||||
|                          keyboardNavigation: true, | ||||
|                      }); | ||||
|     intro.oncomplete(reportIntroFinished); | ||||
|     intro.onexit(reportIntroFinished); | ||||
|     intro.start(); | ||||
| } | ||||
|  | ||||
| function reportIntroFinished() { | ||||
|     $.post(routeForFinishedTour); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user