(function(){

	function onFinish() {

		ApiClient.ajax({

            url: ApiClient.getUrl('Startup/Complete'),
            type: 'POST'

        }).then(function () {

            Dashboard.navigate('dashboard.html');
        });
	}

    $(document).on('pageinit', '#wizardFinishPage', function(){

    	$('.btnWizardNext', this).on('click', onFinish);
    });

})();