diff options
author | Kushal Pandya <kushal@gitlab.com> | 2017-03-28 11:02:57 +0530 |
---|---|---|
committer | Kushal Pandya <kushal@gitlab.com> | 2017-03-28 11:02:57 +0530 |
commit | aa637e69e04f92f0f8e8178a919ada5df088a186 (patch) | |
tree | 5457d813e30eae9b3bdb3c95c58a0c6913987431 /app/views | |
parent | 625af1684f5f0487d07f12b20d6c33e30c54b969 (diff) | |
download | gitlab-ce-aa637e69e04f92f0f8e8178a919ada5df088a186.tar.gz |
Update export button tooltip
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/new.html.haml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/projects/new.html.haml b/app/views/projects/new.html.haml index 252929cdb9f..3a3db3e26a9 100644 --- a/app/views/projects/new.html.haml +++ b/app/views/projects/new.html.haml @@ -109,6 +109,8 @@ %p Please wait a moment, this page will automatically refresh when ready. :javascript + var importBtnTooltip = "Please enter a valid project name."; + $('.how_to_import_link').bind('click', function (e) { e.preventDefault(); var import_modal = $(this).next(".modal").show(); @@ -124,7 +126,7 @@ }); $('.btn_import_gitlab_project').attr('disabled', $('#project_path').val().trim().length === 0); - $('.import_gitlab_project').attr('title', 'Project path and name required.'); + $('.import_gitlab_project').attr('title', importBtnTooltip); $('#new_project').submit(function(){ var $path = $('#project_path'); @@ -138,7 +140,7 @@ $(".flash-container").html("") } else { $('.btn_import_gitlab_project').attr('disabled',true); - $('.import_gitlab_project').attr('title', 'Project path and name required.'); + $('.import_gitlab_project').attr('title', importBtnTooltip); } }); |