Use iframe for Dropbox integration.

This lets us avoid popping up a separate browser window (which would
not currently work in the desktop app).

This closes Trac #1673.

(imported from commit eb1990d8021600fc4d3870f6ec3a28f7111036c3)
This commit is contained in:
Waseem Daher
2013-08-14 10:31:12 -04:00
parent 13d3b4ab59
commit 34e0c1e696

View File

@@ -533,11 +533,11 @@ $(function () {
var links = _.map(files, function (file) { return '[' + file.name + '](' + file.link +')'; }) var links = _.map(files, function (file) { return '[' + file.name + '](' + file.link +')'; })
.join(' ') + ' '; .join(' ') + ' ';
textbox.val(textbox.val() + links); textbox.val(textbox.val() + links);
}, },
// Optional. A value of false (default) limits selection to a single file, while // Optional. A value of false (default) limits selection to a single file, while
// true enables multiple file selection. // true enables multiple file selection.
multiselect: true multiselect: true,
iframe: true
}; };
Dropbox.choose(options); Dropbox.choose(options);
}); });