Commit 9a153572004e71f34cd5f716db9b3bda3067162a

Authored by OlenaKl
1 parent b10d17b8

V

Showing 2 changed files with 19 additions and 5 deletions   Show diff stats
frontend/views/goods/index.php
... ... @@ -96,9 +96,9 @@ $this->params['breadcrumbs'][] = $this->title;
96 96 <td class="medium_width row_name">Номер детали</td>
97 97 <td class="large_width row_name">Описание</td>
98 98 <td class="row_select1 row_name"></td>
99   - <td class="right_large row_name link_sort"><?=$sort->link('box')?></td>
100   - <td class="right_small row_name link_sort"><?=$sort->link('delivery')?></td>
101   - <td class="right_medium row_name link_sort"><?=$sort->link('price')?></td>
  99 + <td class="right_large row_name link_sort arrow_up"><?=$sort->link('box')?></td>
  100 + <td class="right_small row_name link_sort arrow_up"><?=$sort->link('delivery')?></td>
  101 + <td class="right_medium row_name link_sort arrow_up"><?=$sort->link('price')?></td>
102 102  
103 103 </tr>
104 104 <?php
... ... @@ -437,6 +437,11 @@ $this-&gt;params[&#39;breadcrumbs&#39;][] = $this-&gt;title;
437 437 $('.tovar_card').toggleClass('tovar_card_visible');
438 438 $('.table').toggleClass('table_height');
439 439 });
  440 + $('.link_sort').click(function(){
  441 + event.preventDefault();
  442 + $(this).toggleClass('arrow_downA');
  443 +
  444 + })
440 445 </script>
441 446  
442 447 <?php
... ...
frontend/web/css/main.css
... ... @@ -563,7 +563,16 @@ div.required:after { content: &quot; *&quot;;
563 563 color: #333;
564 564 text-decoration: none;
565 565 display: inline-block;
566   - margin-left: -13px;
  566 + margin-left: -9px;
567 567 width: 100%;
568   - background: url("/images/icon2.png") no-repeat 100%;
  568 + position: relative;
  569 +}
  570 +
  571 +.arrow_up{
  572 + background: url("/images/icon2.png") no-repeat 93%;
  573 +
  574 +}
  575 +
  576 +.arrow_downA{
  577 + background: url("/images/icon2r.png") no-repeat 93%!important;
569 578 }
570 579 \ No newline at end of file
... ...