summaryrefslogtreecommitdiffstats
path: root/static/functions/autocomplete.js
diff options
context:
space:
mode:
authorGit <git@what.cd>2013-05-15 08:00:54 +0000
committerGit <git@what.cd>2013-05-15 08:00:54 +0000
commit53a66282061736297cd91215eac3f93940a9dec1 (patch)
tree456e625f5cb0a3b86e86c4ab61cbc1858caf8331 /static/functions/autocomplete.js
parentbdb2e4fe12d23debfe7865034ad57d24e62cf658 (diff)
downloadGazelle-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.js10
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);
}