summaryrefslogtreecommitdiff
path: root/app/assets
diff options
context:
space:
mode:
authorTim Zallmann <tzallmann@gitlab.com>2017-07-25 15:02:24 +0200
committerTim Zallmann <tzallmann@gitlab.com>2017-07-27 15:03:04 +0200
commitcad80263ade171b9e6bb80156d3222323e6be691 (patch)
treef8ae95a7afd4be847ed7f02325e407343d869d9b /app/assets
parentf149a76b2d9ab8f5249a8d613c4c3f9153201d3e (diff)
downloadgitlab-ce-cad80263ade171b9e6bb80156d3222323e6be691.tar.gz
Fixes New Project Bug
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/projects/project_new.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/projects/project_new.js b/app/assets/javascripts/projects/project_new.js
index 4f87df8e160..e3fcf218cfb 100644
--- a/app/assets/javascripts/projects/project_new.js
+++ b/app/assets/javascripts/projects/project_new.js
@@ -2,9 +2,9 @@ document.addEventListener('DOMContentLoaded', () => {
const importBtnTooltip = 'Please enter a valid project name.';
const $importBtnWrapper = $('.import_gitlab_project');
- $('.how_to_import_link').bind('click', function (e) {
+ $('.how_to_import_link').bind('click', (e) => {
e.preventDefault();
- $(this).next('.modal').show();
+ $('.how_to_import_link').next('.modal').show();
});
$('.modal-header .close').bind('click', () => {
@@ -25,7 +25,7 @@ document.addEventListener('DOMContentLoaded', () => {
});
$('#project_path').keyup(() => {
- if ($(this).val().trim().length !== 0) {
+ if ($('#project_path').val().trim().length !== 0) {
$('.btn_import_gitlab_project').attr('disabled', false);
$importBtnWrapper.attr('title', '');
$importBtnWrapper.removeClass('has-tooltip');