diff --git a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js index a5a6330630..41cbf4ba93 100644 --- a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js +++ b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js @@ -309,8 +309,6 @@ function layerDetailsPageInit (ctx) { var entryElement = mParent.find("input"); if (entryElement.length == 0) entryElement = mParent.find("textarea"); - if (entryElement.length == 0) - entryElement = mParent.find("select"); if (entryElement.length == 0) { console.warn("Could not find element to get data from for this change"); return; @@ -331,12 +329,8 @@ function layerDetailsPageInit (ctx) { /* success layer property changed */ var inputArea = mParent.parents("dd"); var text; - /* We don't actually want the value from the select option we want - * the text that represents the value to display - */ - text = entryElement.children("option:selected").text(); - if (!text) - text = entryElement.val(); + + text = entryElement.val(); /* Hide the "Not set" text if it's visible */ inputArea.find(".muted").hide(); diff --git a/bitbake/lib/toaster/toastergui/templates/layerdetails.html b/bitbake/lib/toaster/toastergui/templates/layerdetails.html index c69f9e945a..5bed0f8f06 100644 --- a/bitbake/lib/toaster/toastergui/templates/layerdetails.html +++ b/bitbake/lib/toaster/toastergui/templates/layerdetails.html @@ -160,26 +160,7 @@ -