You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
830 B
JavaScript
30 lines
830 B
JavaScript
define([
|
|
'jquery',
|
|
'/common/outer/local-store.js',
|
|
'/customize/messages.js',
|
|
], function ($, LocalStore, Messages) {
|
|
|
|
$(function () {
|
|
var $main = $('#mainBlock');
|
|
|
|
// main block is hidden in case javascript is disabled
|
|
$main.removeClass('hidden');
|
|
|
|
// Make sure we don't display non-translated content (empty button)
|
|
$main.find('#data').removeClass('hidden');
|
|
|
|
if (LocalStore.isLoggedIn()) {
|
|
if (window.location.pathname === '/') {
|
|
window.location = '/drive/';
|
|
return;
|
|
}
|
|
|
|
$main.find('a[href="/drive/"] div.pad-button-text h4')
|
|
.text(Messages.main_yourCryptDrive);
|
|
}
|
|
$(window).click(function () {
|
|
$('.cp-dropdown-content').hide();
|
|
});
|
|
});
|
|
});
|