-rw-r--r-- | content/fireflix.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/content/fireflix.js b/content/fireflix.js index 328e9e2..995ec5c 100644 --- a/content/fireflix.js +++ b/content/fireflix.js @@ -662,12 +662,21 @@ var fireflix = { }, on_cmd_sets_html: function(csfx,ev) { var uti = csfx.charAt(0); var utl = csfx.charAt(1); var rv = this.build_html(this.photoset.photos,uti,utl); this.popup_content(rv); }, + on_cmd_setphotos_html: function(csfx,ev) { + var uti = csfx.charAt(0); var utl = csfx.charAt(1); + var rv = ''; + for(var p in this.photoset.photos) { + if(this.photoset.selection.isSelected(p)) + rv += this.photo_html(this.photoset.photos[p],uti,utl)+'\n'; + } + this.popup_content(rv); + }, on_cmd_uploads_html: function(csfx,ev) { var uti = csfx.charAt(0); var utl = csfx.charAt(1); var pids = new Array(); for(var f in this.uploads.files) { if(this.uploads.selection.isSelected(f)) @@ -920,12 +929,16 @@ var fireflix = { build_menus: function() { this.append_html_menu( document.getElementById('sets_html_menu'), 'stm_','m_bop','cmdset_sets','cmd_sets_html' ); this.append_html_menu( + document.getElementById('setphotos_html_menu'), + 'stm_','m_bop','cmdset_setphotos','cmd_setphotos_html' + ); + this.append_html_menu( document.getElementById('uploads_html_menu'), 'stm_','m_bop','cmdset_uploads','cmd_uploads_html' ); return; }, append_html_menu: function(m,imgt,lnkt,csid,cpfx) { |