Thread Starter
osadi
(@osadi)
Added:
var addNoAjaxyClass = function(){
$(aws_data['ids']).each(function(){
$(this).addClass('no-ajaxy');
});
}
addNoAjaxyClass();
// Ajaxify our Internal Links
$body.ajaxify();
And commented out/removed:
//Adding no-ajaxy class to a tags present under ids provided
// jQuery(aws_data['ids']).each(function(){
// console.log(this);
// jQuery(this).addClass('no-ajaxy');
// });
Problem was that the click event handler was bound before the no-ajaxy class was added.