author | Michael Krelin <hacker@klever.net> | 2006-10-02 19:51:26 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2006-10-02 19:51:26 (UTC) |
commit | 5ebff6dee62ada9c0559f65381ccd92892911151 (patch) (unidiff) | |
tree | ca36d8fd3da98846eda11d38cc049ff6dd8c5915 | |
parent | b568e40a49d810d49bcc4af3bcb81ee1812627a5 (diff) | |
download | fireflix-5ebff6dee62ada9c0559f65381ccd92892911151.zip fireflix-5ebff6dee62ada9c0559f65381ccd92892911151.tar.gz fireflix-5ebff6dee62ada9c0559f65381ccd92892911151.tar.bz2 |
preparse photo descriptions to avoid breaking things because of invalid html in description
git-svn-id: http://svn.klever.net/kin/fireflix/trunk@181 fe716a7a-6dde-0310-88d9-d003556173a8
-rw-r--r-- | content/fireflix.js | 14 | ||||
-rw-r--r-- | locale/en-US/fireflix.properties | 2 |
2 files changed, 12 insertions, 4 deletions
diff --git a/content/fireflix.js b/content/fireflix.js index 92c42f4..966630c 100644 --- a/content/fireflix.js +++ b/content/fireflix.js | |||
@@ -673,260 +673,266 @@ var fireflix = { | |||
673 | for(var pn in pids) { | 673 | for(var pn in pids) { |
674 | var p = pids[pn]; | 674 | var p = pids[pn]; |
675 | var pp = new Photo(xp_node('/rsp/photos/photo[@id='+p+']',x)); | 675 | var pp = new Photo(xp_node('/rsp/photos/photo[@id='+p+']',x)); |
676 | rv += _this.photo_html(pp,uti,utl)+'\n'; | 676 | rv += _this.photo_html(pp,uti,utl)+'\n'; |
677 | } | 677 | } |
678 | _this.popup_content(rv); | 678 | _this.popup_content(rv); |
679 | }, function(x,s,c,m) { | 679 | }, function(x,s,c,m) { |
680 | _this.flickr_failure(x,s,c,m); | 680 | _this.flickr_failure(x,s,c,m); |
681 | } | 681 | } |
682 | ); | 682 | ); |
683 | }, | 683 | }, |
684 | 684 | ||
685 | /* | 685 | /* |
686 | * | 686 | * |
687 | */ | 687 | */ |
688 | foundphotos: { | 688 | foundphotos: { |
689 | fireflix: null, | 689 | fireflix: null, |
690 | init: function(f) { | 690 | init: function(f) { |
691 | this.fireflix = f; | 691 | this.fireflix = f; |
692 | pull_elements(this,document,[ | 692 | pull_elements(this,document,[ |
693 | 'search_for','search_tags','search_mine', | 693 | 'search_for','search_tags','search_mine', |
694 | 'searchresult_props','search_photo', | 694 | 'searchresult_props','search_photo', |
695 | 'searchresult_title','searchresult_description', | 695 | 'searchresult_title','searchresult_description', |
696 | 'search_page','cmd_search_prev_page','cmd_search_next_page' | 696 | 'search_page','cmd_search_prev_page','cmd_search_next_page' |
697 | ]); | 697 | ]); |
698 | document.getElementById('searchresults').view = this; | 698 | document.getElementById('searchresults').view = this; |
699 | }, | 699 | }, |
700 | photos: new Array(), | 700 | photos: new Array(), |
701 | rowCount: 0, | 701 | rowCount: 0, |
702 | getCellText: function(r,c) { | 702 | getCellText: function(r,c) { |
703 | var p = this.photos[r]; | 703 | var p = this.photos[r]; |
704 | if(c.id=='sr_title') return p.title; | 704 | if(c.id=='sr_title') return p.title; |
705 | return c.id; | 705 | return c.id; |
706 | }, | 706 | }, |
707 | setTree: function(t) { this.tree = t }, | 707 | setTree: function(t) { this.tree = t }, |
708 | isContainer: function(r) { return false }, | 708 | isContainer: function(r) { return false }, |
709 | isSeparator: function(r) { return false }, | 709 | isSeparator: function(r) { return false }, |
710 | isSorted: function(r) { return false }, | 710 | isSorted: function(r) { return false }, |
711 | getLevel: function(r) { return 0 }, | 711 | getLevel: function(r) { return 0 }, |
712 | getImageSrc: function(r,c) { return null }, | 712 | getImageSrc: function(r,c) { return null }, |
713 | getRowProperties: function(r,p) { }, | 713 | getRowProperties: function(r,p) { }, |
714 | getCellProperties: function(cid,cel,p) { }, | 714 | getCellProperties: function(cid,cel,p) { }, |
715 | getColumnProperties: function(cid,cel,p) { }, | 715 | getColumnProperties: function(cid,cel,p) { }, |
716 | cycleHeader: function(cid,e) { }, | 716 | cycleHeader: function(cid,e) { }, |
717 | getParentIndex: function(r) { return -1 }, | 717 | getParentIndex: function(r) { return -1 }, |
718 | drop: function(r,o) { }, | 718 | drop: function(r,o) { }, |
719 | canDropBeforeAfter: function(r,b) { return false }, | 719 | canDropBeforeAfter: function(r,b) { return false }, |
720 | 720 | ||
721 | importXPR: function(xp) { | 721 | importXPR: function(xp) { |
722 | this.selection.clearSelection(); | 722 | this.selection.clearSelection(); |
723 | this.selection.currentIndex = -1; | 723 | this.selection.currentIndex = -1; |
724 | this.searchresult_props.hidden = true; | 724 | this.searchresult_props.hidden = true; |
725 | this.tree.beginUpdateBatch(); | 725 | this.tree.beginUpdateBatch(); |
726 | this.photos = new Array(); | 726 | this.photos = new Array(); |
727 | var n; while(n=xp.iterateNext()) { | 727 | var n; while(n=xp.iterateNext()) { |
728 | this.photos.push(new Photo(n)); | 728 | this.photos.push(new Photo(n)); |
729 | } | 729 | } |
730 | this.rowCount = this.photos.length; | 730 | this.rowCount = this.photos.length; |
731 | this.tree.endUpdateBatch(); | 731 | this.tree.endUpdateBatch(); |
732 | }, | 732 | }, |
733 | paging: { | 733 | paging: { |
734 | pars: null, | 734 | pars: null, |
735 | page: null, pages: null, perpage: null, total: null | 735 | page: null, pages: null, perpage: null, total: null |
736 | }, | 736 | }, |
737 | search_photos: function() { | 737 | search_photos: function() { |
738 | var pars = { | 738 | var pars = { |
739 | method: 'flickr.photos.search', | 739 | method: 'flickr.photos.search', |
740 | auth_token: 'default', | 740 | auth_token: 'default', |
741 | extras: 'license,date_upload,date_taken,owner_name,icon_server,original_format,last_update,geo' | 741 | extras: 'license,date_upload,date_taken,owner_name,icon_server,original_format,last_update,geo' |
742 | }; | 742 | }; |
743 | if(this.search_mine.checked) | 743 | if(this.search_mine.checked) |
744 | pars.user_id='me'; | 744 | pars.user_id='me'; |
745 | if(this.search_tags.checked) { | 745 | if(this.search_tags.checked) { |
746 | pars.tags=this.search_for.value.split(/ +/).join(','); | 746 | pars.tags=this.search_for.value.split(/ +/).join(','); |
747 | }else{ | 747 | }else{ |
748 | pars.text=this.search_for.value; | 748 | pars.text=this.search_for.value; |
749 | } | 749 | } |
750 | this.paging.pars = new Object(); | 750 | this.paging.pars = new Object(); |
751 | this.paging.page = null; this.paging.pages = null; | 751 | this.paging.page = null; this.paging.pages = null; |
752 | this.paging.perpage = null; this.paging.total = null; | 752 | this.paging.perpage = null; this.paging.total = null; |
753 | for(var p in pars) this.paging.pars[p] = pars[p]; | 753 | for(var p in pars) this.paging.pars[p] = pars[p]; |
754 | this.perform_search(pars); | 754 | this.perform_search(pars); |
755 | }, | 755 | }, |
756 | perform_search: function(p) { | 756 | perform_search: function(p) { |
757 | var _this = this; | 757 | var _this = this; |
758 | this.fireflix.flickr.api_call( p, | 758 | this.fireflix.flickr.api_call( p, |
759 | function(xr) { | 759 | function(xr) { |
760 | var x = xr.responseXML; | 760 | var x = xr.responseXML; |
761 | var xp = xp_nodes('/rsp/photos/photo',x); | 761 | var xp = xp_nodes('/rsp/photos/photo',x); |
762 | _this.importXPR(xp); | 762 | _this.importXPR(xp); |
763 | _this.tree.ensureRowIsVisible(0); | 763 | _this.tree.ensureRowIsVisible(0); |
764 | xp = xp_node('/rsp/photos',x); | 764 | xp = xp_node('/rsp/photos',x); |
765 | _this.paging.page = parseInt(xp.getAttribute('page')); | 765 | _this.paging.page = parseInt(xp.getAttribute('page')); |
766 | _this.paging.pages = parseInt(xp.getAttribute('pages')); | 766 | _this.paging.pages = parseInt(xp.getAttribute('pages')); |
767 | _this.paging.perpage = parseInt(xp.getAttribute('perpage')); | 767 | _this.paging.perpage = parseInt(xp.getAttribute('perpage')); |
768 | _this.paging.total = parseInt(xp.getAttribute('total')); | 768 | _this.paging.total = parseInt(xp.getAttribute('total')); |
769 | _this.update_paging(); | 769 | _this.update_paging(); |
770 | _this.on_select(); | 770 | _this.on_select(); |
771 | }, function(x,s,c,m) { | 771 | }, function(x,s,c,m) { |
772 | _this.fireflix.flickr_failure(x,s,c,m); | 772 | _this.fireflix.flickr_failure(x,s,c,m); |
773 | } | 773 | } |
774 | ); | 774 | ); |
775 | }, | 775 | }, |
776 | on_cmd_prev: function(ev) { | 776 | on_cmd_prev: function(ev) { |
777 | var pars = new Object(); | 777 | var pars = new Object(); |
778 | for(var p in this.paging.pars) pars[p] = this.paging.pars[p]; | 778 | for(var p in this.paging.pars) pars[p] = this.paging.pars[p]; |
779 | pars.page=this.paging.page-1; pars.per_page=this.paging.perpage; | 779 | pars.page=this.paging.page-1; pars.per_page=this.paging.perpage; |
780 | this.perform_search(pars); | 780 | this.perform_search(pars); |
781 | }, | 781 | }, |
782 | on_cmd_next: function(ev) { | 782 | on_cmd_next: function(ev) { |
783 | var pars = new Object(); | 783 | var pars = new Object(); |
784 | for(var p in this.paging.pars) pars[p] = this.paging.pars[p]; | 784 | for(var p in this.paging.pars) pars[p] = this.paging.pars[p]; |
785 | pars.page=this.paging.page+1; pars.per_page=this.paging.perpage; | 785 | pars.page=this.paging.page+1; pars.per_page=this.paging.perpage; |
786 | this.perform_search(pars); | 786 | this.perform_search(pars); |
787 | }, | 787 | }, |
788 | update_paging: function() { | 788 | update_paging: function() { |
789 | if(! (this.paging.pars && this.paging.page && this.paging.pages) ) { | 789 | if(! (this.paging.pars && this.paging.page && this.paging.pages) ) { |
790 | this.search_page.value=''; this.search_page.hidden = true; | 790 | this.search_page.value=''; this.search_page.hidden = true; |
791 | this.cmd_search_prev_page.setAttribute('disabled','true'); | 791 | this.cmd_search_prev_page.setAttribute('disabled','true'); |
792 | this.cmd_search_next_page.setAttribute('disabled','true'); | 792 | this.cmd_search_next_page.setAttribute('disabled','true'); |
793 | }else{ | 793 | }else{ |
794 | this.search_page.value=this.fireflix.loc_strings.getFormattedString('search_page',[this.paging.page,this.paging.pages]); | 794 | this.search_page.value=this.fireflix.loc_strings.getFormattedString('search_page',[this.paging.page,this.paging.pages]); |
795 | this.search_page.hidden=false; | 795 | this.search_page.hidden=false; |
796 | this.cmd_search_prev_page.setAttribute('disabled',(this.paging.page>1)?'false':'true'); | 796 | this.cmd_search_prev_page.setAttribute('disabled',(this.paging.page>1)?'false':'true'); |
797 | this.cmd_search_next_page.setAttribute('disabled',(this.paging.page<this.paging.pages)?'false':'true'); | 797 | this.cmd_search_next_page.setAttribute('disabled',(this.paging.page<this.paging.pages)?'false':'true'); |
798 | } | 798 | } |
799 | }, | 799 | }, |
800 | render_description_frame: function(content) { | 800 | render_description_frame: function(content) { |
801 | if(!content) { | 801 | this.searchresult_description.innerHTML = ''; |
802 | this.searchresult_description.innerHTML = ''; | 802 | if(content) { |
803 | }else{ | 803 | var dp = new DOMParser(); |
804 | this.searchresult_description.innerHTML = content?content:''; | 804 | var pd = dp.parseFromString( |
805 | '<div xmlns="http://www.w3.org/1999/xhtml">'+content+'</div>', 'text/xml' ); | ||
806 | var de = pd.documentElement; | ||
807 | if(de.tagName=='parsererror') | ||
808 | this.searchresult_description.innerHTML=this.fireflix.loc_strings.getString('broken_description'); | ||
809 | else | ||
810 | this.searchresult_description.appendChild(de); | ||
805 | /* of all linking elements flickr only allows a */ | 811 | /* of all linking elements flickr only allows a */ |
806 | var as = this.searchresult_description.getElementsByTagName('a'); | 812 | var as = this.searchresult_description.getElementsByTagName('a'); |
807 | for(var a=0;a<as.length;++a) | 813 | for(var a=0;a<as.length;++a) |
808 | as.item(a).setAttribute('target','_blank'); | 814 | as.item(a).setAttribute('target','_blank'); |
809 | } | 815 | } |
810 | }, | 816 | }, |
811 | on_select: function() { | 817 | on_select: function() { |
812 | if(this.selection.currentIndex<0) { | 818 | if(this.selection.currentIndex<0) { |
813 | this.searchresult_props.hidden = true; | 819 | this.searchresult_props.hidden = true; |
814 | }else{ | 820 | }else{ |
815 | var p = this.photos[this.selection.currentIndex]; | 821 | var p = this.photos[this.selection.currentIndex]; |
816 | if(!p) { | 822 | if(!p) { |
817 | this.searchresult_props.hidden = true; | 823 | this.searchresult_props.hidden = true; |
818 | }else{ | 824 | }else{ |
819 | this.search_photo.src = this.fireflix.flickr.make_photo_url(p,'t'); | 825 | this.search_photo.src = this.fireflix.flickr.make_photo_url(p,'t'); |
820 | this.searchresult_title.value = p.title; | 826 | this.searchresult_title.value = p.title; |
821 | this.searchresult_title.tooltipText = p.title; | 827 | this.searchresult_title.tooltipText = p.title; |
822 | this.render_description_frame(null); | 828 | this.render_description_frame(null); |
823 | if(p.description==null && p.description==undefined) { | 829 | if(p.description==null && p.description==undefined) { |
824 | var pid = p.id; | 830 | var pid = p.id; |
825 | var ci = this.selection.currentIndex; | 831 | var ci = this.selection.currentIndex; |
826 | var _this = this; | 832 | var _this = this; |
827 | this.fireflix.flickr.api_call( | 833 | this.fireflix.flickr.api_call( |
828 | { | 834 | { |
829 | method: 'flickr.photos.getInfo', | 835 | method: 'flickr.photos.getInfo', |
830 | auth_token: 'default', | 836 | auth_token: 'default', |
831 | photo_id: p.id, | 837 | photo_id: p.id, |
832 | secret: p.secret | 838 | secret: p.secret |
833 | }, function(xr) { | 839 | }, function(xr) { |
834 | var pp = _this.photos[ci]; | 840 | var pp = _this.photos[ci]; |
835 | if(ci==_this.selection.currentIndex && pp.id==pid) { | 841 | if(ci==_this.selection.currentIndex && pp.id==pid) { |
836 | var n = xp_node('/rsp/photo',xr.responseXML); | 842 | var n = xp_node('/rsp/photo',xr.responseXML); |
837 | pp.fromNode_(n); | 843 | pp.fromNode_(n); |
838 | _this.render_description_frame(pp.description); | 844 | _this.render_description_frame(pp.description); |
839 | } | 845 | } |
840 | }, function(x,s,c,m) { | 846 | }, function(x,s,c,m) { |
841 | _this.fireflix.flickr_failure(x,s,c,m); | 847 | _this.fireflix.flickr_failure(x,s,c,m); |
842 | } | 848 | } |
843 | ); | 849 | ); |
844 | this.searchresult_props.hidden = false; | 850 | this.searchresult_props.hidden = false; |
845 | }else{ | 851 | }else{ |
846 | this.render_description_frame(p.description); | 852 | this.render_description_frame(p.description); |
847 | } | 853 | } |
848 | } | 854 | } |
849 | } | 855 | } |
850 | }, | 856 | }, |
851 | on_cmd_open: function(ev) { | 857 | on_cmd_open: function(ev) { |
852 | if(this.selection.currentIndex<0) | 858 | if(this.selection.currentIndex<0) |
853 | return; | 859 | return; |
854 | var p = this.photos[this.selection.currentIndex]; | 860 | var p = this.photos[this.selection.currentIndex]; |
855 | if(!p.id) | 861 | if(!p.id) |
856 | return; | 862 | return; |
857 | this.fireflix.openTab(this.fireflix.flickr.make_photo_url(p,'p')); | 863 | this.fireflix.openTab(this.fireflix.flickr.make_photo_url(p,'p')); |
858 | } | 864 | } |
859 | }, | 865 | }, |
860 | 866 | ||
861 | photo_html: function(p,i,l) { | 867 | photo_html: function(p,i,l) { |
862 | // TODO: add alt/title when possible | 868 | // TODO: add alt/title when possible |
863 | var rv = | 869 | var rv = |
864 | '<a href="'+this.flickr.make_photo_url(p,l)+'">' + | 870 | '<a href="'+this.flickr.make_photo_url(p,l)+'">' + |
865 | '<img src="'+this.flickr.make_photo_url(p,i)+'" />'+ | 871 | '<img src="'+this.flickr.make_photo_url(p,i)+'" />'+ |
866 | '</a>'; | 872 | '</a>'; |
867 | return rv; | 873 | return rv; |
868 | }, | 874 | }, |
869 | build_html: function(photos,uti,utl) { | 875 | build_html: function(photos,uti,utl) { |
870 | var rv = ''; | 876 | var rv = ''; |
871 | for(var i in photos) { | 877 | for(var i in photos) { |
872 | var p = photos[i]; | 878 | var p = photos[i]; |
873 | rv += this.photo_html(p,utl,uti)+'\n'; | 879 | rv += this.photo_html(p,utl,uti)+'\n'; |
874 | } | 880 | } |
875 | return rv; | 881 | return rv; |
876 | }, | 882 | }, |
877 | 883 | ||
878 | popup_content: function(s) { | 884 | popup_content: function(s) { |
879 | window.openDialog( | 885 | window.openDialog( |
880 | "chrome://fireflix/content/generated-content.xul", | 886 | "chrome://fireflix/content/generated-content.xul", |
881 | null, "dialog,chrome", this, s ); | 887 | null, "dialog,chrome", this, s ); |
882 | }, | 888 | }, |
883 | copy_to_clipboard: function(s) { | 889 | copy_to_clipboard: function(s) { |
884 | var ch = Components.classes["@mozilla.org/widget/clipboardhelper;1"] | 890 | var ch = Components.classes["@mozilla.org/widget/clipboardhelper;1"] |
885 | .getService(Components.interfaces.nsIClipboardHelper); | 891 | .getService(Components.interfaces.nsIClipboardHelper); |
886 | ch.copyString(s); | 892 | ch.copyString(s); |
887 | }, | 893 | }, |
888 | openTab: function(l) { | 894 | openTab: function(l) { |
889 | var wm = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService( | 895 | var wm = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService( |
890 | Components.interfaces.nsIWindowMediator ); | 896 | Components.interfaces.nsIWindowMediator ); |
891 | var bw = wm.getMostRecentWindow('navigator:browser'); | 897 | var bw = wm.getMostRecentWindow('navigator:browser'); |
892 | var b = bw.getBrowser(); | 898 | var b = bw.getBrowser(); |
893 | var t = b.addTab(l); | 899 | var t = b.addTab(l); |
894 | b.selectedTab = t; | 900 | b.selectedTab = t; |
895 | }, | 901 | }, |
896 | 902 | ||
897 | build_menus: function() { | 903 | build_menus: function() { |
898 | this.append_html_menu( | 904 | this.append_html_menu( |
899 | document.getElementById('sets_html_menu'), | 905 | document.getElementById('sets_html_menu'), |
900 | 'stm_','m_bop','cmdset_sets','cmd_sets_html' | 906 | 'stm_','m_bop','cmdset_sets','cmd_sets_html' |
901 | ); | 907 | ); |
902 | this.append_html_menu( | 908 | this.append_html_menu( |
903 | document.getElementById('uploads_html_menu'), | 909 | document.getElementById('uploads_html_menu'), |
904 | 'stm_','m_bop','cmdset_uploads','cmd_uploads_html' | 910 | 'stm_','m_bop','cmdset_uploads','cmd_uploads_html' |
905 | ); | 911 | ); |
906 | return; | 912 | return; |
907 | }, | 913 | }, |
908 | append_html_menu: function(m,imgt,lnkt,csid,cpfx) { | 914 | append_html_menu: function(m,imgt,lnkt,csid,cpfx) { |
909 | var mp = m.appendChild(document.createElement('menupopup')); | 915 | var mp = m.appendChild(document.createElement('menupopup')); |
910 | var t; | 916 | var t; |
911 | t=mp.appendChild(document.createElement('menuitem')); | 917 | t=mp.appendChild(document.createElement('menuitem')); |
912 | t.setAttribute('label',this.loc_strings.getString('menutitle_Images')); | 918 | t.setAttribute('label',this.loc_strings.getString('menutitle_Images')); |
913 | t.setAttribute('class','menuhead');t.setAttribute('disabled','true'); | 919 | t.setAttribute('class','menuhead');t.setAttribute('disabled','true'); |
914 | mp.appendChild(document.createElement('menuseparator')); | 920 | mp.appendChild(document.createElement('menuseparator')); |
915 | var cs = document.getElementById(csid); | 921 | var cs = document.getElementById(csid); |
916 | for(var iti=0;iti<imgt.length;++iti) { | 922 | for(var iti=0;iti<imgt.length;++iti) { |
917 | t = mp.appendChild(document.createElement('menu')); | 923 | t = mp.appendChild(document.createElement('menu')); |
918 | t.setAttribute('label',this.loc_strings.getString('urltype_'+imgt.charAt(iti))); | 924 | t.setAttribute('label',this.loc_strings.getString('urltype_'+imgt.charAt(iti))); |
919 | var smp = t.appendChild(document.createElement('menupopup')); | 925 | var smp = t.appendChild(document.createElement('menupopup')); |
920 | t=smp.appendChild(document.createElement('menuitem')); | 926 | t=smp.appendChild(document.createElement('menuitem')); |
921 | t.setAttribute('label',this.loc_strings.getString('menutitle_Links')); | 927 | t.setAttribute('label',this.loc_strings.getString('menutitle_Links')); |
922 | t.setAttribute('class','menuhead');t.setAttribute('disabled','true'); | 928 | t.setAttribute('class','menuhead');t.setAttribute('disabled','true'); |
923 | smp.appendChild(document.createElement('menuseparator')); | 929 | smp.appendChild(document.createElement('menuseparator')); |
924 | for(var lti=0;lti<lnkt.length;++lti) { | 930 | for(var lti=0;lti<lnkt.length;++lti) { |
925 | var csfx = imgt.charAt(iti)+lnkt.charAt(lti); | 931 | var csfx = imgt.charAt(iti)+lnkt.charAt(lti); |
926 | t=smp.appendChild(document.createElement('menuitem')); | 932 | t=smp.appendChild(document.createElement('menuitem')); |
927 | t.setAttribute('label',this.loc_strings.getString('urltype_'+lnkt.charAt(lti))); | 933 | t.setAttribute('label',this.loc_strings.getString('urltype_'+lnkt.charAt(lti))); |
928 | t.setAttribute('command',cpfx+'_'+csfx); | 934 | t.setAttribute('command',cpfx+'_'+csfx); |
929 | t=cs.appendChild(document.createElement('command')); | 935 | t=cs.appendChild(document.createElement('command')); |
930 | t.setAttribute('id',cpfx+'_'+csfx); | 936 | t.setAttribute('id',cpfx+'_'+csfx); |
931 | t.setAttribute('oncommand','fireflix.on_'+cpfx+"('"+csfx+"',event)"); | 937 | t.setAttribute('oncommand','fireflix.on_'+cpfx+"('"+csfx+"',event)"); |
932 | } | 938 | } |
diff --git a/locale/en-US/fireflix.properties b/locale/en-US/fireflix.properties index 18300ff..f583040 100644 --- a/locale/en-US/fireflix.properties +++ b/locale/en-US/fireflix.properties | |||
@@ -1,13 +1,15 @@ | |||
1 | postUploadPhotoset=Create a new photoset for uploaded photos (cancel if you don't want to create a photoset) | 1 | postUploadPhotoset=Create a new photoset for uploaded photos (cancel if you don't want to create a photoset) |
2 | 2 | ||
3 | menutitle_Images=Images | 3 | menutitle_Images=Images |
4 | menutitle_Links=Linked to… | 4 | menutitle_Links=Linked to… |
5 | urltype_s=Small square (75x75) | 5 | urltype_s=Small square (75x75) |
6 | urltype_t=Thumbnail (fits in 100x100) | 6 | urltype_t=Thumbnail (fits in 100x100) |
7 | urltype_m=Small (fits in 240x240) | 7 | urltype_m=Small (fits in 240x240) |
8 | urltype__=Medium (fits in 500x500) | 8 | urltype__=Medium (fits in 500x500) |
9 | urltype_b=Large (fits in 1024x1024) | 9 | urltype_b=Large (fits in 1024x1024) |
10 | urltype_o=Original image | 10 | urltype_o=Original image |
11 | urltype_p=Flickr photo URL | 11 | urltype_p=Flickr photo URL |
12 | 12 | ||
13 | search_page=Page %S of %S | 13 | search_page=Page %S of %S |
14 | |||
15 | broken_description=Broken photo description | ||