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
889a9370
Commit
889a9370
authored
Mar 01, 2017
by
Sam Rose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor export CSV modal
parent
4a13e4d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
app/assets/javascripts/issues/export_csv_modal.js
app/assets/javascripts/issues/export_csv_modal.js
+9
-8
No files found.
app/assets/javascripts/issues/export_csv_modal.js
View file @
889a9370
/* eslint-disable no-new */
$
(()
=>
{
class
ExportCSVModal
{
constructor
()
{
this
.
$
e
l
=
$
(
'
.issues-export-modal
'
);
this
.
$
b
tn
=
$
(
'
.csv_download_link
'
);
this
.
$close
=
$
(
'
.modal-header .close
'
);
this
.
$
moda
l
=
$
(
'
.issues-export-modal
'
);
this
.
$
downloadB
tn
=
$
(
'
.csv_download_link
'
);
this
.
$close
Btn
=
$
(
'
.modal-header .close
'
);
this
.
init
();
}
init
()
{
this
.
$
e
l
.
modal
({
show
:
false
});
this
.
$
btn
.
on
(
'
click
'
,
()
=>
this
.
$e
l
.
modal
(
'
show
'
));
this
.
$close
.
on
(
'
click
'
,
()
=>
this
.
$e
l
.
modal
(
'
hide
'
));
this
.
$
moda
l
.
modal
({
show
:
false
});
this
.
$
downloadBtn
.
on
(
'
click
'
,
()
=>
this
.
$moda
l
.
modal
(
'
show
'
));
this
.
$close
Btn
.
on
(
'
click
'
,
()
=>
this
.
$moda
l
.
modal
(
'
hide
'
));
}
}
window
.
gl
=
window
.
gl
||
{};
gl
.
ExportCSVModal
=
new
ExportCSVModal
();
new
ExportCSVModal
();
});
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