Commit aa637e69 authored by Kushal Pandya's avatar Kushal Pandya

Update export button tooltip

parent 625af168
...@@ -109,6 +109,8 @@ ...@@ -109,6 +109,8 @@
%p Please wait a moment, this page will automatically refresh when ready. %p Please wait a moment, this page will automatically refresh when ready.
:javascript :javascript
var importBtnTooltip = "Please enter a valid project name.";
$('.how_to_import_link').bind('click', function (e) { $('.how_to_import_link').bind('click', function (e) {
e.preventDefault(); e.preventDefault();
var import_modal = $(this).next(".modal").show(); var import_modal = $(this).next(".modal").show();
...@@ -124,7 +126,7 @@ ...@@ -124,7 +126,7 @@
}); });
$('.btn_import_gitlab_project').attr('disabled', $('#project_path').val().trim().length === 0); $('.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(){ $('#new_project').submit(function(){
var $path = $('#project_path'); var $path = $('#project_path');
...@@ -138,7 +140,7 @@ ...@@ -138,7 +140,7 @@
$(".flash-container").html("") $(".flash-container").html("")
} else { } else {
$('.btn_import_gitlab_project').attr('disabled',true); $('.btn_import_gitlab_project').attr('disabled',true);
$('.import_gitlab_project').attr('title', 'Project path and name required.'); $('.import_gitlab_project').attr('title', importBtnTooltip);
} }
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment