summaryrefslogtreecommitdiffabout
path: root/content/fireflix.js
Side-by-side diff
Diffstat (limited to 'content/fireflix.js') (more/less context) (ignore whitespace changes)
-rw-r--r--content/fireflix.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/content/fireflix.js b/content/fireflix.js
index 0f51397..2ee408f 100644
--- a/content/fireflix.js
+++ b/content/fireflix.js
@@ -161,6 +161,14 @@ var fireflix = {
}else{
this.set_photo.hidden = true;
}
+ },
+ on_cmd_open: function(ev) {
+ if(this.selection.currentIndex<0)
+ return;
+ var p = this.photos[this.selection.currentIndex];
+ if(!p.id)
+ return;
+ this.fireflix.openTab(this.fireflix.flickr.make_photo_url(p,'p'));
}
},