Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

dropdown_list_widget: Move require to top level.

Anders Kaseorgd206f68182c0
diff --git a/static/js/dropdown_list_widget.js b/static/js/dropdown_list_widget.js
index f4594432410..9560b9a8882 100644
--- a/static/js/dropdown_list_widget.js
+++ b/static/js/dropdown_list_widget.js
@@ -1,5 +1,7 @@
"use strict";
+const render_dropdown_list = require("../templates/settings/dropdown_list.hbs");
+
const DropdownListWidget = function (opts) {
const init = () => {
// Run basic sanity checks on opts, and set up sane defaults.
@@ -20,8 +22,6 @@ const DropdownListWidget = function (opts) {
};
init();
- const render_dropdown_list = require("../templates/settings/dropdown_list.hbs");
-
const render = (value) => {
$(`#${opts.container_id} #${opts.value_id}`).data("value", value);