summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/static
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/layerdetails.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js
index 5fd7274894..8165bad5dd 100644
--- a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js
+++ b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js
@@ -423,7 +423,7 @@ function layerDetailsPageInit (ctx) {
423 $(this).hide(); 423 $(this).hide();
424 saveSourceChangesBtn.attr("disabled", "disabled"); 424 saveSourceChangesBtn.attr("disabled", "disabled");
425 425
426 $("#git-repo-info", "#directory-info").hide(); 426 $("#git-repo-info, #directory-info").hide();
427 $("#edit-layer-source-form").fadeIn(); 427 $("#edit-layer-source-form").fadeIn();
428 if ($("#layer-dir-path-in-details").val() == "") { 428 if ($("#layer-dir-path-in-details").val() == "") {
429 //Local dir path is empty... 429 //Local dir path is empty...
@@ -473,9 +473,9 @@ function layerDetailsPageInit (ctx) {
473 }); 473 });
474 474
475 $('#cancel-changes-for-switch').click(function() { 475 $('#cancel-changes-for-switch').click(function() {
476 $("#edit-layer-source-form").add("#layer-git").add("#layer-dir").fadeOut().promise().done(function(){ 476 $("#edit-layer-source-form").hide();
477 editLayerSource.show(); 477 $("#directory-info, #git-repo-info").fadeIn();
478 }); 478 editLayerSource.show();
479 }); 479 });
480 480
481 saveSourceChangesBtn.click(function() { 481 saveSourceChangesBtn.click(function() {