fix in calculating selected states on aspect filters

This commit is contained in:
danielvincent 2011-01-21 01:16:34 -08:00
parent 22d4083c8c
commit 8af2fc7bcc
2 changed files with 5 additions and 2 deletions

View file

@ -11,7 +11,7 @@ $(document).ready(function(){
var button = $(this),
guid = button.attr('data-guid');
if(guid && location.href.search("a_ids..="+guid) != -1){
if(guid && location.href.search("a_ids..="+guid+"(&|$)") != -1){
button.addClass('selected');
selectedGUIDS.push(guid);
}
@ -115,7 +115,7 @@ $(document).ready(function(){
});
// set url
history.pushState(null, document.title, generateURL());
history.pushState(null, document.title, newURL);
$.ajax({
url : newURL,

View file

@ -2033,6 +2033,9 @@ h3,h4
:color #fff
:font
:weight normal
&:hover
:text
:decoration none
.aspects
:position relative