Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ae015929
Commit
ae015929
authored
Mar 01, 2018
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor ExportCSVModal into a function and an es module
parent
98fcf168
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
21 deletions
+12
-21
ee/app/assets/javascripts/export_csv_modal.js
ee/app/assets/javascripts/export_csv_modal.js
+9
-0
ee/app/assets/javascripts/issues/export_csv_modal.js
ee/app/assets/javascripts/issues/export_csv_modal.js
+0
-20
ee/app/assets/javascripts/issues/issues_bundle.js
ee/app/assets/javascripts/issues/issues_bundle.js
+3
-1
No files found.
ee/app/assets/javascripts/export_csv_modal.js
0 → 100644
View file @
ae015929
export
default
function
initExportCSVModal
()
{
const
$modal
=
$
(
'
.issues-export-modal
'
);
const
$downloadBtn
=
$
(
'
.csv_download_link
'
);
const
$closeBtn
=
$
(
'
.modal-header .close
'
);
$modal
.
modal
({
show
:
false
});
$downloadBtn
.
on
(
'
click
'
,
()
=>
$modal
.
modal
(
'
show
'
));
$closeBtn
.
on
(
'
click
'
,
()
=>
$modal
.
modal
(
'
hide
'
));
}
ee/app/assets/javascripts/issues/export_csv_modal.js
deleted
100644 → 0
View file @
98fcf168
/* eslint-disable no-new */
$
(()
=>
{
class
ExportCSVModal
{
constructor
()
{
this
.
$modal
=
$
(
'
.issues-export-modal
'
);
this
.
$downloadBtn
=
$
(
'
.csv_download_link
'
);
this
.
$closeBtn
=
$
(
'
.modal-header .close
'
);
this
.
init
();
}
init
()
{
this
.
$modal
.
modal
({
show
:
false
});
this
.
$downloadBtn
.
on
(
'
click
'
,
()
=>
this
.
$modal
.
modal
(
'
show
'
));
this
.
$closeBtn
.
on
(
'
click
'
,
()
=>
this
.
$modal
.
modal
(
'
hide
'
));
}
}
new
ExportCSVModal
();
});
ee/app/assets/javascripts/issues/issues_bundle.js
View file @
ae015929
import
'
./export_csv_modal
'
;
import
initExportCSVModal
from
'
ee/export_csv_modal
'
;
initExportCSVModal
();
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment