Commit 760a327b authored by fred's avatar fred
Browse files

keep middle click working as expected

parent ca155cfd
......@@ -93,9 +93,13 @@ $(function() {
$.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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment