summaryrefslogtreecommitdiffabout
path: root/content/fireflix.js
authorMichael Krelin <hacker@klever.net>2006-11-16 21:54:55 (UTC)
committer Michael Krelin <hacker@klever.net>2006-11-16 21:54:55 (UTC)
commit8db8cc953a91ccba910228bdaf2563ffd92f3d61 (patch) (side-by-side diff)
treecce7bfe83b5273f309f8b3a47ae0373bc029910d /content/fireflix.js
parent26b7e66a091703dab249ca11f00a1cb49987c393 (diff)
downloadfireflix-8db8cc953a91ccba910228bdaf2563ffd92f3d61.zip
fireflix-8db8cc953a91ccba910228bdaf2563ffd92f3d61.tar.gz
fireflix-8db8cc953a91ccba910228bdaf2563ffd92f3d61.tar.bz2
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
Diffstat (limited to 'content/fireflix.js') (more/less context) (show 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
@@ -152,24 +152,32 @@ var fireflix = {
}
);
},
on_select: function() {
if(this.selection.count==1) {
var p = this.photos[this.selection.currentIndex];
this.set_photo.src =
this.fireflix.flickr.get_photo_url(p.server,p.id,p.secret,'t');
this.set_photo.hidden = false;
}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'));
}
},
/* photosets treeview */
photosets: {
sets: new Array(),
fireflix: null,
init: function(f) {
this.fireflix = f;
document.getElementById('setslist').view = this;
},
rowCount: 0,