summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/static/js/projecttopbar.js
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js/projecttopbar.js')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/projecttopbar.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/projecttopbar.js b/bitbake/lib/toaster/toastergui/static/js/projecttopbar.js
index b09f974e47..f0cd18bf48 100644
--- a/bitbake/lib/toaster/toastergui/static/js/projecttopbar.js
+++ b/bitbake/lib/toaster/toastergui/static/js/projecttopbar.js
@@ -25,6 +25,7 @@ function projectTopBarInit(ctx) {
25 e.preventDefault(); 25 e.preventDefault();
26 projectNameForm.hide(); 26 projectNameForm.hide();
27 projectNameContainer.fadeIn(); 27 projectNameContainer.fadeIn();
28 $("#project-name-change-input").val(projectName.text());
28 }); 29 });
29 30
30 $("#project-name-change-btn").click(function(){ 31 $("#project-name-change-btn").click(function(){
@@ -87,4 +88,10 @@ function projectTopBarInit(ctx) {
87 window.location.replace(libtoaster.ctx.projectBuildsUrl); 88 window.location.replace(libtoaster.ctx.projectBuildsUrl);
88 }, null); 89 }, null);
89 }); 90 });
91
92 /* Call makeProjectNameValidation function */
93 libtoaster.makeProjectNameValidation($("#project-name-change-input"),
94 $("#hint-error-project-name"), $("#validate-project-name"),
95 $("#project-name-change-btn"));
96
90} 97}