De-referer external urls.

This commit is contained in:
Ruud
2012-08-24 22:46:32 +02:00
parent e33c6b3a5f
commit d817179747
2 changed files with 13 additions and 10 deletions
+1 -10
View File
@@ -323,19 +323,10 @@ var IMDBAction = new Class({
self.el = new Element('a.imdb', {
'title': 'Go to the IMDB page of ' + self.movie.getTitle(),
'events': {
'click': self.gotoIMDB.bind(self)
}
'href': 'http://www.imdb.com/title/'+self.id+'/'
});
if(!self.id) self.disable();
},
gotoIMDB: function(e){
var self = this;
(e).preventDefault();
window.open('http://www.imdb.com/title/'+self.id+'/');
}
});