summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2015-03-22 08:40:14 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-25 12:39:57 (GMT)
commit1a4c8a849ac14e6a7a90d5730758b010b68ffd9f (patch)
treea33367a3ee4763f7c66085377758bb87e8912177
parent3190ab644199ea8e7d765783d71ed1cb39ac8e1b (diff)
downloadpoky-1a4c8a849ac14e6a7a90d5730758b010b68ffd9f.tar.gz
poky-1a4c8a849ac14e6a7a90d5730758b010b68ffd9f.tar.xz
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.html40
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 8b609ad..01ece24 100644
--- a/bitbake/lib/toaster/toastergui/templates/projectconf.html
+++ b/bitbake/lib/toaster/toastergui/templates/projectconf.html
@@ -690,24 +690,38 @@
$("#change-package_classes-form").slideDown();
// initialize the pulldown and checkboxes
- var value = document.getElementById("package_classes").innerHTML;
- if (0 == value.indexOf("package_deb")) {
- $('select').selectedIndex = 0;
+ var value = $("#package_classes").text();
+ if ( value.indexOf("package_deb") == 0 ) {
+ $("#package_classes-select").prop('selectedIndex', 0);
updatePackageClassCheckboxes();
- if (0 < value.indexOf("package_ipk")) {document.getElementById("package_class_1_input").checked = true};
- if (0 < value.indexOf("package_rpm")) {document.getElementById("package_class_2_input").checked = true};
+ if ( value.indexOf("_ipk") > 0 ) {
+ $("#package_class_1_input").attr("checked",true);
+ }
+ if ( value.indexOf("_rpm") > 0 ) {
+ $("#package_class_2_input").attr("checked",true);
+ }
}
- if (0 == value.indexOf("package_ipk")) {
- $('select').selectedIndex = 1;
+
+ if ( value.indexOf("package_ipk") == 0 ) {
+ $("#package_classes-select").prop('selectedIndex', 1);
updatePackageClassCheckboxes();
- if (0 < value.indexOf("package_deb")) {document.getElementById("package_class_1_input").checked = true;};
- if (0 < value.indexOf("package_rpm")) {document.getElementById("package_class_2_input").checked = true;};
+ if ( value.indexOf("_deb") > 0 ) {
+ $("#package_class_1_input").attr("checked",true);
+ }
+ if ( value.indexOf("_rpm") > 0 ) {
+ $("#package_class_2_input").attr("checked",true);
+ }
}
- if (0 == value.indexOf("package_rpm")) {
- $('select').selectedIndex = 2;
+
+ if ( value.indexOf("package_rpm") == 0 ) {
+ $("#package_classes-select").prop('selectedIndex', 2);
updatePackageClassCheckboxes();
- if (0 < value.indexOf("package_deb")) {document.getElementById("#package_class_1_input").checked = true;};
- if (0 < value.indexOf("package_ipk")) {document.getElementById("#package_class_2_input").checked = true;};
+ if ( value.indexOf("_deb") > 0 ) {
+ $("#package_class_1_input").attr("checked",true);
+ }
+ if ( value.indexOf("_ipk") > 0 ) {
+ $("#package_class_2_input").attr("checked",true);
+ }
}
});