Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-07-25 18:27:51 +0300
committerPhil Hughes <me@iamphill.com>2017-07-25 18:27:51 +0300
commitfe27de8bf124d65013da1d82618a1ab45584ff68 (patch)
tree0826d84ae6697a957705ca677bf4db46306fc808 /app/assets/javascripts/init_issuable_sidebar.js
parent205090fcfb741884215723281dfb0afb56efbbfb (diff)
moved some code into new files
fixed duplication of code
Diffstat (limited to 'app/assets/javascripts/init_issuable_sidebar.js')
-rw-r--r--app/assets/javascripts/init_issuable_sidebar.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/assets/javascripts/init_issuable_sidebar.js b/app/assets/javascripts/init_issuable_sidebar.js
new file mode 100644
index 00000000000..82071348d99
--- /dev/null
+++ b/app/assets/javascripts/init_issuable_sidebar.js
@@ -0,0 +1,16 @@
+/* eslint-disable no-new */
+/* global MilestoneSelect */
+/* global LabelsSelect */
+/* global IssuableContext */
+/* global Sidebar */
+
+export default () => {
+ new MilestoneSelect({
+ full_path: gl.sidebarOptions.fullPath,
+ });
+ new LabelsSelect();
+ new IssuableContext(gl.sidebarOptions.currentUser);
+ gl.Subscription.bindAll('.subscription');
+ new gl.DueDateSelectors();
+ window.sidebar = new Sidebar();
+};