diff options
author | Donald Cook <dcook@gitlab.com> | 2019-04-17 09:00:50 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2019-04-17 09:00:50 +0000 |
commit | e78dde56814e886c2a135b8fa34f179763b83101 (patch) | |
tree | 9aea16eab24bc8fcd7f3df7826927ddfd06e60e0 | |
parent | c5f05cce408e40d60b08691347339c534abec3c4 (diff) | |
download | gitlab-ce-e78dde56814e886c2a135b8fa34f179763b83101.tar.gz |
Backport of "Resolves EE differences for project_new.js"
-rw-r--r-- | app/assets/javascripts/projects/project_new.js | 6 |
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; |