fixed aspect selector bug in header
This commit is contained in:
parent
9abe22d5d2
commit
e4e8d7ada4
1 changed files with 19 additions and 16 deletions
|
|
@ -19,26 +19,29 @@ $(document).ready(function(){
|
|||
|
||||
|
||||
$("a.hard_aspect_link").live("click", function(e){
|
||||
e.preventDefault();
|
||||
requests++;
|
||||
var link = $(this);
|
||||
if( !link.hasClass('aspect_selector') ){
|
||||
e.preventDefault();
|
||||
requests++;
|
||||
|
||||
var guid = $(this).attr('data-guid');
|
||||
var guid = $(this).attr('data-guid');
|
||||
|
||||
// select correct aspect in filter list & deselect others
|
||||
$("#aspect_nav li").each(function(){
|
||||
var $this = $(this);
|
||||
if( $this.attr('data-guid') == guid){
|
||||
$this.addClass('selected');
|
||||
} else {
|
||||
$this.removeClass('selected');
|
||||
}
|
||||
});
|
||||
// select correct aspect in filter list & deselect others
|
||||
$("#aspect_nav li").each(function(){
|
||||
var $this = $(this);
|
||||
if( $this.attr('data-guid') == guid){
|
||||
$this.addClass('selected');
|
||||
} else {
|
||||
$this.removeClass('selected');
|
||||
}
|
||||
});
|
||||
|
||||
// loading animation
|
||||
$("#aspect_stream_container").fadeTo(100, 0.4);
|
||||
$("#aspect_contact_pictures").fadeTo(100, 0.4);
|
||||
// loading animation
|
||||
$("#aspect_stream_container").fadeTo(100, 0.4);
|
||||
$("#aspect_contact_pictures").fadeTo(100, 0.4);
|
||||
|
||||
performAjax( $(this).attr('href'));
|
||||
performAjax( $(this).attr('href'));
|
||||
}
|
||||
});
|
||||
|
||||
$("#aspect_nav a.aspect_selector").click(function(e){
|
||||
|
|
|
|||
Loading…
Reference in a new issue