mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
upload: Move compose initialization back to compose module.
This makes the lines of logic a bit simpler.
This commit is contained in:
@@ -1027,7 +1027,9 @@ exports.initialize = function () {
|
||||
Dropbox.choose(options);
|
||||
});
|
||||
|
||||
upload.initialize();
|
||||
$("#compose").filedrop(
|
||||
upload.options()
|
||||
);
|
||||
|
||||
if (page_params.narrow !== undefined) {
|
||||
if (page_params.narrow_topic !== undefined) {
|
||||
|
||||
@@ -127,12 +127,6 @@ exports.options = function () {
|
||||
};
|
||||
};
|
||||
|
||||
exports.initialize = function () {
|
||||
$("#compose").filedrop(
|
||||
exports.options()
|
||||
);
|
||||
};
|
||||
|
||||
return exports;
|
||||
}());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user