Commit 7ea39d3b137ec37432e6982b1098154bc716e3a2

Authored by Eugeny Galkovskiy
1 parent 4ee7051b

Сортировка

frontend/views/category/view.php
@@ -162,6 +162,7 @@ _________________________________________________________ --> @@ -162,6 +162,7 @@ _________________________________________________________ -->
162 <?php 162 <?php
163 } 163 }
164 ?> 164 ?>
  165 +
165 </div> 166 </div>
166 167
167 <?php 168 <?php
@@ -310,7 +311,6 @@ _________________________________________________________ --&gt; @@ -310,7 +311,6 @@ _________________________________________________________ --&gt;
310 <?php 311 <?php
311 } 312 }
312 ?> 313 ?>
313 -  
314 <!-- *** MENUS AND FILTERS END *** --> 314 <!-- *** MENUS AND FILTERS END *** -->
315 315
316 <!-- /.banner --> 316 <!-- /.banner -->
frontend/web/css/style.css
@@ -4821,12 +4821,30 @@ a i.fa, button i.fa, span.fa { @@ -4821,12 +4821,30 @@ a i.fa, button i.fa, span.fa {
4821 .sort-cat.active .sorter{ 4821 .sort-cat.active .sorter{
4822 display: block; 4822 display: block;
4823 } 4823 }
4824 -.sort-cat.active a#category-sort{ 4824 +.sort-cat.active>a{
4825 color:#000; 4825 color:#000;
4826 } 4826 }
4827 -.sort-cat a#category-sort i.fa-angle-down{ 4827 +.sort-cat>a i.fa-angle-down{
4828 transition: 0.2s; 4828 transition: 0.2s;
4829 } 4829 }
4830 -.sort-cat.active a#category-sort i.fa-angle-down{ 4830 +.sort-cat.active>a i.fa-angle-down{
4831 transform: rotate(180deg); 4831 transform: rotate(180deg);
  4832 +}
  4833 +
  4834 +.price-inputs{
  4835 + position:relative;
  4836 + padding:0;
  4837 +}
  4838 +.price-inputs .input-block{
  4839 + padding:0;
  4840 +}
  4841 +.price-inputs .input-sep{
  4842 + line-height: 27px;
  4843 + padding: 0 9px;
  4844 +}
  4845 +.price-inputs input{
  4846 + width: 100%;
  4847 + border: 1px solid #005bac;
  4848 + border-radius: 3px;
  4849 + padding: 5px 10px;
4832 } 4850 }
4833 \ No newline at end of file 4851 \ No newline at end of file
frontend/web/js/script.js
@@ -248,7 +248,7 @@ $(function() { @@ -248,7 +248,7 @@ $(function() {
248 ); 248 );
249 } 249 }
250 ); 250 );
251 - $(document).on('click', '#category-sort', function(e){ 251 + $(document).on('click', '.sort-cat>a', function(e){
252 $(this).parent().toggleClass("active"); 252 $(this).parent().toggleClass("active");
253 return false; 253 return false;
254 }); 254 });
@@ -262,7 +262,7 @@ $(function() { @@ -262,7 +262,7 @@ $(function() {
262 $(".sort-cat a#category-sort").attr('href', newmainlink); 262 $(".sort-cat a#category-sort").attr('href', newmainlink);
263 $(this).text(pstext); 263 $(this).text(pstext);
264 $(this).attr('href', mainlink); 264 $(this).attr('href', mainlink);
265 - $("#category-sort").click(); 265 + $(".sort-cat>a").click();
266 }); 266 });
267 267
268 }); 268 });