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

parent 12f73a6e
......@@ -33,8 +33,10 @@ $(document).ready(function () {
// Устанавливаем вкладку по url:
if(window.location.hash) {
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) {
<div class="switch-data">
<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-regions">По регионам</span>
</div>
......@@ -376,7 +376,7 @@ if (!$error) {
</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="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