mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 19:06:09 +00:00
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:
@@ -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);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user