diff options
author | David Reyna <David.Reyna@windriver.com> | 2015-03-22 01:40:14 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-03-25 12:39:57 +0000 |
commit | 1a4c8a849ac14e6a7a90d5730758b010b68ffd9f (patch) | |
tree | a33367a3ee4763f7c66085377758bb87e8912177 | |
parent | 3190ab644199ea8e7d765783d71ed1cb39ac8e1b (diff) | |
download | poky-1a4c8a849ac14e6a7a90d5730758b010b68ffd9f.tar.gz |
bitbake: toaster: PACKAGE_CLASSES variable does not show current value when editing
A typo in some element selectors caused the package_rpm setup to break.
[YOCTO #7448]
(Bitbake rev: 0479faa46f0364df6d8e151be34e1834076df49d)
Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/projectconf.html | 40 |
1 files changed, 27 insertions, 13 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/projectconf.html b/bitbake/lib/toaster/toastergui/templates/projectconf.html index 8b609adb64..01ece24511 100644 --- a/bitbake/lib/toaster/toastergui/templates/projectconf.html +++ b/bitbake/lib/toaster/toastergui/templates/projectconf.html | |||
@@ -690,24 +690,38 @@ | |||
690 | $("#change-package_classes-form").slideDown(); | 690 | $("#change-package_classes-form").slideDown(); |
691 | 691 | ||
692 | // initialize the pulldown and checkboxes | 692 | // initialize the pulldown and checkboxes |
693 | var value = document.getElementById("package_classes").innerHTML; | 693 | var value = $("#package_classes").text(); |
694 | if (0 == value.indexOf("package_deb")) { | 694 | if ( value.indexOf("package_deb") == 0 ) { |
695 | $('select').selectedIndex = 0; | 695 | $("#package_classes-select").prop('selectedIndex', 0); |
696 | updatePackageClassCheckboxes(); | 696 | updatePackageClassCheckboxes(); |
697 | if (0 < value.indexOf("package_ipk")) {document.getElementById("package_class_1_input").checked = true}; | 697 | if ( value.indexOf("_ipk") > 0 ) { |
698 | if (0 < value.indexOf("package_rpm")) {document.getElementById("package_class_2_input").checked = true}; | 698 | $("#package_class_1_input").attr("checked",true); |
699 | } | ||
700 | if ( value.indexOf("_rpm") > 0 ) { | ||
701 | $("#package_class_2_input").attr("checked",true); | ||
702 | } | ||
699 | } | 703 | } |
700 | if (0 == value.indexOf("package_ipk")) { | 704 | |
701 | $('select').selectedIndex = 1; | 705 | if ( value.indexOf("package_ipk") == 0 ) { |
706 | $("#package_classes-select").prop('selectedIndex', 1); | ||
702 | updatePackageClassCheckboxes(); | 707 | updatePackageClassCheckboxes(); |
703 | if (0 < value.indexOf("package_deb")) {document.getElementById("package_class_1_input").checked = true;}; | 708 | if ( value.indexOf("_deb") > 0 ) { |
704 | if (0 < value.indexOf("package_rpm")) {document.getElementById("package_class_2_input").checked = true;}; | 709 | $("#package_class_1_input").attr("checked",true); |
710 | } | ||
711 | if ( value.indexOf("_rpm") > 0 ) { | ||
712 | $("#package_class_2_input").attr("checked",true); | ||
713 | } | ||
705 | } | 714 | } |
706 | if (0 == value.indexOf("package_rpm")) { | 715 | |
707 | $('select').selectedIndex = 2; | 716 | if ( value.indexOf("package_rpm") == 0 ) { |
717 | $("#package_classes-select").prop('selectedIndex', 2); | ||
708 | updatePackageClassCheckboxes(); | 718 | updatePackageClassCheckboxes(); |
709 | if (0 < value.indexOf("package_deb")) {document.getElementById("#package_class_1_input").checked = true;}; | 719 | if ( value.indexOf("_deb") > 0 ) { |
710 | if (0 < value.indexOf("package_ipk")) {document.getElementById("#package_class_2_input").checked = true;}; | 720 | $("#package_class_1_input").attr("checked",true); |
721 | } | ||
722 | if ( value.indexOf("_ipk") > 0 ) { | ||
723 | $("#package_class_2_input").attr("checked",true); | ||
724 | } | ||
711 | } | 725 | } |
712 | }); | 726 | }); |
713 | 727 | ||