Commit 2418215dd9a23c69142fa42481556554413d4a7e
1 parent
f9d0a7ef
git
Showing
1 changed file
with
10 additions
and
3 deletions
Show diff stats
frontend/views/tender/view.php
| @@ -389,10 +389,17 @@ | @@ -389,10 +389,17 @@ | ||
| 389 | 389 | ||
| 390 | function tabs_() | 390 | function tabs_() |
| 391 | { | 391 | { |
| 392 | - console.log(location.hash) | ||
| 393 | $('.tabs_list').css('display', 'block') | 392 | $('.tabs_list').css('display', 'block') |
| 394 | - $('._tabs').css({display : 'none'}) | ||
| 395 | - $('._tabs:first-child').css({display : 'block'}) | 393 | + if(location.hash=='#tabs_2') { |
| 394 | + $('._tabs').css({display : 'block'}) | ||
| 395 | + $('._tabs:first-child').css({display : 'none'}) | ||
| 396 | + $('.tabs_list ul li').addClass('active') | ||
| 397 | + $('.tabs_list ul li:first-child').removeClass('active') | ||
| 398 | + } else { | ||
| 399 | + $('._tabs').css({display : 'none'}) | ||
| 400 | + $('._tabs:first-child').css({display : 'block'}) | ||
| 401 | + } | ||
| 402 | + | ||
| 396 | $('.tabs_list ul li').click( | 403 | $('.tabs_list ul li').click( |
| 397 | function() | 404 | function() |
| 398 | { | 405 | { |