author | Michael Krelin <hacker@klever.net> | 2006-10-09 19:03:13 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2006-10-09 19:03:13 (UTC) |
commit | 55ea41380cc2bcbaebf8cb0a2c1ee401b79f5016 (patch) (unidiff) | |
tree | 03a2704067dc5dea4c5c10a8ab0401d6b1f74656 | |
parent | da97ac566cb06a583bd8b84b9e1275e37ea0a3ca (diff) | |
download | fireflix-55ea41380cc2bcbaebf8cb0a2c1ee401b79f5016.zip fireflix-55ea41380cc2bcbaebf8cb0a2c1ee401b79f5016.tar.gz fireflix-55ea41380cc2bcbaebf8cb0a2c1ee401b79f5016.tar.bz2 |
html generation was mistakenly reversed
git-svn-id: http://svn.klever.net/kin/fireflix/trunk@189 fe716a7a-6dde-0310-88d9-d003556173a8
-rw-r--r-- | content/fireflix.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/fireflix.js b/content/fireflix.js index 63a4118..85b4d39 100644 --- a/content/fireflix.js +++ b/content/fireflix.js | |||
@@ -855,49 +855,49 @@ var fireflix = { | |||
855 | } | 855 | } |
856 | }, | 856 | }, |
857 | on_cmd_open: function(ev) { | 857 | on_cmd_open: function(ev) { |
858 | if(this.selection.currentIndex<0) | 858 | if(this.selection.currentIndex<0) |
859 | return; | 859 | return; |
860 | var p = this.photos[this.selection.currentIndex]; | 860 | var p = this.photos[this.selection.currentIndex]; |
861 | if(!p.id) | 861 | if(!p.id) |
862 | return; | 862 | return; |
863 | this.fireflix.openTab(this.fireflix.flickr.make_photo_url(p,'p')); | 863 | this.fireflix.openTab(this.fireflix.flickr.make_photo_url(p,'p')); |
864 | } | 864 | } |
865 | }, | 865 | }, |
866 | 866 | ||
867 | photo_html: function(p,i,l) { | 867 | photo_html: function(p,i,l) { |
868 | // TODO: add alt/title when possible | 868 | // TODO: add alt/title when possible |
869 | var rv = | 869 | var rv = |
870 | '<a href="'+this.flickr.make_photo_url(p,l)+'">' + | 870 | '<a href="'+this.flickr.make_photo_url(p,l)+'">' + |
871 | '<img src="'+this.flickr.make_photo_url(p,i)+'" />'+ | 871 | '<img src="'+this.flickr.make_photo_url(p,i)+'" />'+ |
872 | '</a>'; | 872 | '</a>'; |
873 | return rv; | 873 | return rv; |
874 | }, | 874 | }, |
875 | build_html: function(photos,uti,utl) { | 875 | build_html: function(photos,uti,utl) { |
876 | var rv = ''; | 876 | var rv = ''; |
877 | for(var i in photos) { | 877 | for(var i in photos) { |
878 | var p = photos[i]; | 878 | var p = photos[i]; |
879 | rv += this.photo_html(p,utl,uti)+'\n'; | 879 | rv += this.photo_html(p,uti,utl)+'\n'; |
880 | } | 880 | } |
881 | return rv; | 881 | return rv; |
882 | }, | 882 | }, |
883 | 883 | ||
884 | popup_content: function(s) { | 884 | popup_content: function(s) { |
885 | window.openDialog( | 885 | window.openDialog( |
886 | "chrome://fireflix/content/generated-content.xul", | 886 | "chrome://fireflix/content/generated-content.xul", |
887 | null, "dialog,chrome", this, s ); | 887 | null, "dialog,chrome", this, s ); |
888 | }, | 888 | }, |
889 | copy_to_clipboard: function(s) { | 889 | copy_to_clipboard: function(s) { |
890 | var ch = Components.classes["@mozilla.org/widget/clipboardhelper;1"] | 890 | var ch = Components.classes["@mozilla.org/widget/clipboardhelper;1"] |
891 | .getService(Components.interfaces.nsIClipboardHelper); | 891 | .getService(Components.interfaces.nsIClipboardHelper); |
892 | ch.copyString(s); | 892 | ch.copyString(s); |
893 | }, | 893 | }, |
894 | openTab: function(l) { | 894 | openTab: function(l) { |
895 | var wm = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService( | 895 | var wm = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService( |
896 | Components.interfaces.nsIWindowMediator ); | 896 | Components.interfaces.nsIWindowMediator ); |
897 | var bw = wm.getMostRecentWindow('navigator:browser'); | 897 | var bw = wm.getMostRecentWindow('navigator:browser'); |
898 | var b = bw.getBrowser(); | 898 | var b = bw.getBrowser(); |
899 | var t = b.addTab(l); | 899 | var t = b.addTab(l); |
900 | b.selectedTab = t; | 900 | b.selectedTab = t; |
901 | }, | 901 | }, |
902 | 902 | ||
903 | build_menus: function() { | 903 | build_menus: function() { |