Убрал складку по дефолту

parent 12f73a6e
...@@ -33,8 +33,10 @@ $(document).ready(function () { ...@@ -33,8 +33,10 @@ $(document).ready(function () {
// Устанавливаем вкладку по url: // Устанавливаем вкладку по url:
if(window.location.hash) { if(window.location.hash) {
currentType = $.trim(location.hash.replace('#', '')); currentType = $.trim(location.hash.replace('#', ''));
$('.switch-item[data-type="' + currentType + '"]').click(); } else {
currentType = 'stat-common';
} }
$('.switch-item[data-type="' + currentType + '"]').click();
})(); })();
......
...@@ -128,7 +128,7 @@ if (!$error) { ...@@ -128,7 +128,7 @@ if (!$error) {
<div class="switch-data"> <div class="switch-data">
<span class="switch-item" data-type="settings">Настройки кампании</span> <span class="switch-item" data-type="settings">Настройки кампании</span>
<span class="switch-item selected" data-type="stat-common">Общая статистика</span> <span class="switch-item" data-type="stat-common">Общая статистика</span>
<span class="switch-item" data-type="stat-sites">По сайтам</span> <span class="switch-item" data-type="stat-sites">По сайтам</span>
<span class="switch-item" data-type="stat-regions">По регионам</span> <span class="switch-item" data-type="stat-regions">По регионам</span>
</div> </div>
...@@ -376,7 +376,7 @@ if (!$error) { ...@@ -376,7 +376,7 @@ if (!$error) {
</div> </div>
<!-- Общая статистика --> <!-- Общая статистика -->
<div class="form-group-data stat-common selected" data-type="stat-common"> <div class="form-group-data stat-common" data-type="stat-common">
<div class="b-content__loading"></div> <div class="b-content__loading"></div>
<div class="campaign-stat"> <div class="campaign-stat">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment