OpenXE/classes/Modules/Setting/www/js/setting_betaprogram.js

40 lines
1.0 KiB
JavaScript
Raw Normal View History

2021-05-21 08:49:41 +02:00
var SettingBetaProgram = function ($) {
'use strict';
var me = {
selector: {
betaPopup: '#beta-program-thanks-popup',
closeLink: '#beta-program-close-btn'
},
init: function () {
if ($(me.selector.betaPopup).length === 0) {
return;
}
if ($(me.selector.betaPopup).data('open')) {
$(me.selector.betaPopup).toggleClass('hide', false);
$(me.selector.betaPopup).dialog(
{
modal: true,
autoOpen: true,
title: 'Super!'
}
);
}
$(me.selector.closeLink).on('click', function () {
$(me.selector.betaPopup).dialog('close');
window.location.href = 'index.php';
});
}
};
return {
init: me.init
};
}(jQuery);
$(document).ready(function () {
SettingBetaProgram.init();
});