summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Cook <dcook@gitlab.com>2019-04-17 09:00:50 +0000
committerFilipa Lacerda <filipa@gitlab.com>2019-04-17 09:00:50 +0000
commite78dde56814e886c2a135b8fa34f179763b83101 (patch)
tree9aea16eab24bc8fcd7f3df7826927ddfd06e60e0
parentc5f05cce408e40d60b08691347339c534abec3c4 (diff)
downloadgitlab-ce-e78dde56814e886c2a135b8fa34f179763b83101.tar.gz
Backport of "Resolves EE differences for project_new.js"
-rw-r--r--app/assets/javascripts/projects/project_new.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/projects/project_new.js b/app/assets/javascripts/projects/project_new.js
index 784eec1ea55..2164e386fdb 100644
--- a/app/assets/javascripts/projects/project_new.js
+++ b/app/assets/javascripts/projects/project_new.js
@@ -217,6 +217,12 @@ const bindEvents = () => {
$projectImportUrl.keyup(() => deriveProjectPathFromUrl($projectImportUrl));
+ $('.js-import-git-toggle-button').on('click', () => {
+ const $projectMirror = $('#project_mirror');
+
+ $projectMirror.attr('disabled', !$projectMirror.attr('disabled'));
+ });
+
$projectName.on('keyup change', () => {
onProjectNameChange($projectName, $projectPath);
hasUserDefinedProjectPath = $projectPath.val().trim().length > 0;