diff options
author | Git <git@what.cd> | 2013-05-15 08:00:54 +0000 |
---|---|---|
committer | Git <git@what.cd> | 2013-05-15 08:00:54 +0000 |
commit | 53a66282061736297cd91215eac3f93940a9dec1 (patch) | |
tree | 456e625f5cb0a3b86e86c4ab61cbc1858caf8331 /static/functions/autocomplete.js | |
parent | bdb2e4fe12d23debfe7865034ad57d24e62cf658 (diff) | |
download | Gazelle-53a66282061736297cd91215eac3f93940a9dec1.zip Gazelle-53a66282061736297cd91215eac3f93940a9dec1.tar.gz Gazelle-53a66282061736297cd91215eac3f93940a9dec1.tar.bz2 |
Empty commit
Diffstat (limited to 'static/functions/autocomplete.js')
-rw-r--r-- | static/functions/autocomplete.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/static/functions/autocomplete.js b/static/functions/autocomplete.js index 6eb80eb..c306e2c 100644 --- a/static/functions/autocomplete.js +++ b/static/functions/autocomplete.js @@ -137,8 +137,14 @@ var autocomp = { listener.set(li,'mouseover',function() { autocomp.highlight(this.i); }); - listener.set(li,'click',function() { - window.location = autocomp.id + '.php?id='+this.artistid; + listener.set(li,'click',function(e) { + var location = autocomp.id + '.php?id='+this.artistid; + if(e.button == 0) { + window.open(location, '_self'); + } else if(e.button == 1) { + var win = window.open(location, '_blank'); + win.focus(); + } }); this.list.appendChild(li); } |