diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js/layerdetails.js')
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/layerdetails.js | 10 |
1 files changed, 2 insertions, 8 deletions
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) { | |||
309 | var entryElement = mParent.find("input"); | 309 | var entryElement = mParent.find("input"); |
310 | if (entryElement.length == 0) | 310 | if (entryElement.length == 0) |
311 | entryElement = mParent.find("textarea"); | 311 | entryElement = mParent.find("textarea"); |
312 | if (entryElement.length == 0) | ||
313 | entryElement = mParent.find("select"); | ||
314 | if (entryElement.length == 0) { | 312 | if (entryElement.length == 0) { |
315 | console.warn("Could not find element to get data from for this change"); | 313 | console.warn("Could not find element to get data from for this change"); |
316 | return; | 314 | return; |
@@ -331,12 +329,8 @@ function layerDetailsPageInit (ctx) { | |||
331 | /* success layer property changed */ | 329 | /* success layer property changed */ |
332 | var inputArea = mParent.parents("dd"); | 330 | var inputArea = mParent.parents("dd"); |
333 | var text; | 331 | var text; |
334 | /* We don't actually want the value from the select option we want | 332 | |
335 | * the text that represents the value to display | 333 | text = entryElement.val(); |
336 | */ | ||
337 | text = entryElement.children("option:selected").text(); | ||
338 | if (!text) | ||
339 | text = entryElement.val(); | ||
340 | 334 | ||
341 | /* Hide the "Not set" text if it's visible */ | 335 | /* Hide the "Not set" text if it's visible */ |
342 | inputArea.find(".muted").hide(); | 336 | inputArea.find(".muted").hide(); |