Show all aspects selected by default
This commit is contained in:
parent
5a5bc852e2
commit
389136eaf2
1 changed files with 9 additions and 5 deletions
|
|
@ -26,11 +26,15 @@
|
|||
};
|
||||
|
||||
this.initializeSelectedAspects = function() {
|
||||
self.aspectSelectors.each(function() {
|
||||
guid = $(this).data('guid');
|
||||
if (guid && location.href.search("a_ids..=" + guid + "(#|&|$)") != -1)
|
||||
$(this).parent().addClass('active');
|
||||
});
|
||||
if (location.href.search("a_ids..=") == -1) {
|
||||
self.aspectLis.addClass("active");
|
||||
} else {
|
||||
self.aspectSelectors.each(function() {
|
||||
guid = $(this).data('guid');
|
||||
if (guid && location.href.search("a_ids..=" + guid + "(#|&|$)") != -1)
|
||||
$(this).parent().addClass('active');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
this.toggleAspect = function(evt) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue