Commit 62cb07fb8be89f8a36911c4c7d84e823894bbd1d
1 parent
5f4e1dd2
check choose tag and css about this
Showing
3 changed files
with
7 additions
and
3 deletions
| @@ -63,7 +63,10 @@ jQuery(document).ready(function(){ | @@ -63,7 +63,10 @@ jQuery(document).ready(function(){ | ||
| 63 | }; | 63 | }; |
| 64 | if($this.data('value') != 'all' && $this.hasClass('active')){ | 64 | if($this.data('value') != 'all' && $this.hasClass('active')){ |
| 65 | $wrapper.find(".filter label.active[data-value=all]").removeClass('active'); | 65 | $wrapper.find(".filter label.active[data-value=all]").removeClass('active'); |
| 66 | - }; | 66 | + }; |
| 67 | + if($('.filter label.active').length == 0){ | ||
| 68 | + $('.filter label[data-value=all]').addClass('active'); | ||
| 69 | + } | ||
| 67 | loadImage($wrapper, false); | 70 | loadImage($wrapper, false); |
| 68 | } | 71 | } |
| 69 | }); | 72 | }); |
| @@ -47,10 +47,11 @@ | @@ -47,10 +47,11 @@ | ||
| 47 | 47 | ||
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | -.filter .btn-group-toggle > .btn{margin-bottom:5px;position:relative;} | 50 | +.filter .btn-group-toggle > .btn{margin-bottom:5px;position:relative;background-color: #999999;border-color: #999999;} |
| 51 | .filter .btn-group-toggle > .btn a, .filter .btn-group-toggle > .btn a:hover{text-decoration:none;position:absolute;top:-16px;right:2px;font-size:14px;line-height:14px;} | 51 | .filter .btn-group-toggle > .btn a, .filter .btn-group-toggle > .btn a:hover{text-decoration:none;position:absolute;top:-16px;right:2px;font-size:14px;line-height:14px;} |
| 52 | .filter .btn-group-toggle > .btn a{display:none;} | 52 | .filter .btn-group-toggle > .btn a{display:none;} |
| 53 | .filter .btn-group-toggle > .btn:hover a{display:inline;} | 53 | .filter .btn-group-toggle > .btn:hover a{display:inline;} |
| 54 | +.filter .btn-group-toggle > .btn:hover{background-color: #5d9cec;border-color: #5d9cec;} | ||
| 54 | .checkbox-list{ | 55 | .checkbox-list{ |
| 55 | input{margin-right:3px;} | 56 | input{margin-right:3px;} |
| 56 | label{margin-right:10px;} | 57 | label{margin-right:10px;} |