aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/static
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@linux.intel.com>2016-09-05 15:29:26 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-08 00:33:47 +0100
commitb5070f5337cd0914b16ff619f8fcd0bfd189f464 (patch)
tree3a34e41d1d3d65fdb40d0103a5ee190b048ae59b /bitbake/lib/toaster/toastergui/static
parent23056fcc736d3cd58008df5da43fd17e03959f93 (diff)
downloadopenembedded-core-contrib-b5070f5337cd0914b16ff619f8fcd0bfd189f464.tar.gz
bitbake: toaster: layer details Fix "edit" form interaction
Make sure the layer information disappears when the edit form shows, and that the layer details come back when you click the 'cancel' button in the edit form. (Bitbake rev: bd08abe7c1f5fc96ee73c20b2c9d10a591a5f69c) Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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) {
$(this).hide();
saveSourceChangesBtn.attr("disabled", "disabled");
- $("#git-repo-info", "#directory-info").hide();
+ $("#git-repo-info, #directory-info").hide();
$("#edit-layer-source-form").fadeIn();
if ($("#layer-dir-path-in-details").val() == "") {
//Local dir path is empty...
@@ -473,9 +473,9 @@ function layerDetailsPageInit (ctx) {
});
$('#cancel-changes-for-switch').click(function() {
- $("#edit-layer-source-form").add("#layer-git").add("#layer-dir").fadeOut().promise().done(function(){
- editLayerSource.show();
- });
+ $("#edit-layer-source-form").hide();
+ $("#directory-info, #git-repo-info").fadeIn();
+ editLayerSource.show();
});
saveSourceChangesBtn.click(function() {