mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +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);
|
Dropbox.choose(options);
|
||||||
});
|
});
|
||||||
|
|
||||||
upload.initialize();
|
$("#compose").filedrop(
|
||||||
|
upload.options()
|
||||||
|
);
|
||||||
|
|
||||||
if (page_params.narrow !== undefined) {
|
if (page_params.narrow !== undefined) {
|
||||||
if (page_params.narrow_topic !== undefined) {
|
if (page_params.narrow_topic !== undefined) {
|
||||||
|
|||||||
@@ -127,12 +127,6 @@ exports.options = function () {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.initialize = function () {
|
|
||||||
$("#compose").filedrop(
|
|
||||||
exports.options()
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
return exports;
|
return exports;
|
||||||
}());
|
}());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user