$.fn.ajaxifyClick = function(params) {
this.each(function() {
$(this).unbind('click');
- $(this).bind('click',function(){
- $(this).addClass('loading');
+ $(this).bind('click',function(e){
var href = $(this).attr("href");
+ if (e.which == 2) {
+ window.open(href, '_blank');
+ return false;
+ }
+ $(this).addClass('loading');
/* this checks the link points to a local document, be
* it because it's just a path, or because the server
* part points to the same domain */