Initial xentral_oss_20.3.c9ffacf

This commit is contained in:
Alex
2021-05-21 08:49:41 +02:00
parent 5406e4a551
commit 34e5ac43d9
18884 changed files with 2109867 additions and 0 deletions
@@ -0,0 +1,63 @@
var SendCloud = (function ($) {
'use strict';
var me = {
isInitialized: false,
storage: {
$country: $('#land'),
$usStatesSelect: $('#us-states'),
$stateInput: $('#states')
},
/**
* @return void
*/
init: function () {
if (me.isInitialized === true) {
return;
}
me.registerEvents();
me.isInitialized = true;
},
/**
* @return {void}
*/
registerEvents: function () {
$(document).ready(function() {
if(me.storage.$country.val() === 'US'){
me.storage.$usStatesSelect.show();
me.storage.$stateInput.hide();
}else{
me.storage.$stateInput.show();
me.storage.$usStatesSelect.hide();
}
});
me.storage.$country.on('change', function () {
if(me.storage.$country.val() === 'US'){
me.storage.$usStatesSelect.show();
me.storage.$stateInput.hide();
}else{
me.storage.$usStatesSelect.hide();
me.storage.$stateInput.show();
}
});
},
};
return {
init: me.init,
};
})(jQuery);
$(document).ready(function () {
SendCloud.init();
});