From 8db8cc953a91ccba910228bdaf2563ffd92f3d61 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Thu, 16 Nov 2006 21:54:55 +0000 Subject: open flickr page on enter or dblclicking photo in set browser git-svn-id: http://svn.klever.net/kin/fireflix/trunk@226 fe716a7a-6dde-0310-88d9-d003556173a8 --- (limited to 'content/fireflix.js') 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')); } }, -- cgit v0.9.0.2