Open images in a lightbox

Adds file-write permission for saving to disk from lightbox.

Fixes #810

// FREEBIE
This commit is contained in:
lilia 2016-06-20 11:37:26 -07:00
parent f34f6eedef
commit 9091233950
8 changed files with 131 additions and 9 deletions

View file

@ -118,7 +118,8 @@
'click .settings': 'showSettings',
'select .gutter .conversation-list-item': 'openConversation',
'input input.search': 'filterContacts',
'click .restart-signal': 'reloadBackgroundPage'
'click .restart-signal': 'reloadBackgroundPage',
'show .lightbox': 'showLightbox'
},
focusConversation: function(e) {
if (e && this.$(e.target).closest('.placeholder').length) {
@ -163,6 +164,9 @@
this.$('.debug-log').remove();
new Whisper.DebugLogView().$el.appendTo(this.el);
},
showLightbox: function(e) {
this.$el.append(e.target);
},
closeMenu: function(e) {
if (e && this.$(e.target).parent('.global-menu').length > 0 ) {
return;