Fix file inputs

As a chrome app we are obligated to use the fileSystem api, and must do
so via the window in which we want to open the dialog.
This commit is contained in:
lilia
2015-05-21 17:58:22 -07:00
parent 7d481fdc21
commit 5d3a2a4cc8
4 changed files with 27 additions and 13 deletions

View File

@@ -31,8 +31,14 @@
this.render();
this.appWindow = options.appWindow;
new Whisper.WindowControlsView({
appWindow: this.appWindow
}).$el.appendTo(this.$('#header'));
this.fileInput = new Whisper.FileInputView({
el: this.$('.attachments')
el: this.$('.attachments'),
window: this.appWindow.contentWindow
});
this.view = new Whisper.MessageListView({
@@ -41,10 +47,6 @@
this.$('.discussion-container').append(this.view.el);
this.view.render();
new Whisper.WindowControlsView({
appWindow: options.appWindow
}).$el.appendTo(this.$('#header'));
setTimeout(function() {
this.view.scrollToBottom();
}.bind(this), 10);