Welcome to mirror list, hosted at ThFree Co, Russian Federation.

about.js « js - github.com/nextcloud/firstrunwizard.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b32ff29cb7f87ed44ec88815a732b63c0e686437 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
document.addEventListener('DOMContentLoaded', function() {
	var aboutEntry = document.querySelector('#expanddiv li[data-id="firstrunwizard-about"] a');
	if (aboutEntry) {
		aboutEntry.addEventListener('click', function (event) {
			event.stopPropagation();
			event.preventDefault();
			OCP.Loader.loadScript('firstrunwizard', 'firstrunwizard.js').then(function () {
				OCA.FirstRunWizard.open();
				OC.hideMenus(function () {
					return false;
				});
			});
			return true;
		});
	}
});