26 lines
669 B
JavaScript
Raw Normal View History

define([
'jquery',
2017-11-23 12:28:49 +01:00
'/common/outer/local-store.js',
2018-11-05 17:33:04 +01:00
], function ($, LocalStore) {
$(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');
2017-11-23 12:28:49 +01:00
if (LocalStore.isLoggedIn()) {
2017-08-04 14:35:47 +02:00
if (window.location.pathname === '/') {
window.location = '/drive/';
2017-08-04 14:37:21 +02:00
return;
2017-08-04 14:35:47 +02:00
}
}
2018-01-10 09:54:10 +01:00
$(window).click(function () {
$('.cp-dropdown-content').hide();
});
});
});