upload: Move compose initialization back to compose module.

This makes the lines of logic a bit simpler.
This commit is contained in:
Tim Abbott
2018-02-13 13:41:46 -08:00
parent 7af769a272
commit 9de7a69b13
2 changed files with 3 additions and 7 deletions

View File

@@ -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) {

View File

@@ -127,12 +127,6 @@ exports.options = function () {
};
};
exports.initialize = function () {
$("#compose").filedrop(
exports.options()
);
};
return exports;
}());